Drop support for Python 3.4 and make minimum version 3.5.2.

This commit is contained in:
Rapptz
2018-06-10 18:09:14 -04:00
parent 7eb918b19e
commit f25091efe1
35 changed files with 626 additions and 1069 deletions

View File

@ -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)