Drop support for Python 3.4 and make minimum version 3.5.2.
This commit is contained in:
@ -52,8 +52,7 @@ class Relationship:
|
||||
def __repr__(self):
|
||||
return '<Relationship user={0.user!r} type={0.type!r}>'.format(self)
|
||||
|
||||
@asyncio.coroutine
|
||||
def delete(self):
|
||||
async def delete(self):
|
||||
"""|coro|
|
||||
|
||||
Deletes the relationship.
|
||||
@ -64,10 +63,9 @@ class Relationship:
|
||||
Deleting the relationship failed.
|
||||
"""
|
||||
|
||||
yield from self._state.http.remove_relationship(self.user.id)
|
||||
await self._state.http.remove_relationship(self.user.id)
|
||||
|
||||
@asyncio.coroutine
|
||||
def accept(self):
|
||||
async def accept(self):
|
||||
"""|coro|
|
||||
|
||||
Accepts the relationship request. e.g. accepting a
|
||||
@ -79,4 +77,4 @@ class Relationship:
|
||||
Accepting the relationship failed.
|
||||
"""
|
||||
|
||||
yield from self._state.http.add_relationship(self.user.id)
|
||||
await self._state.http.add_relationship(self.user.id)
|
||||
|
Reference in New Issue
Block a user