Remove remaining asyncio.coroutine calls.

Also remove Client.async_event
This commit is contained in:
bmintz
2018-06-30 02:14:05 -05:00
committed by Rapptz
parent 9d301f7cae
commit ec3435b224
2 changed files with 2 additions and 11 deletions

View File

@ -787,13 +787,6 @@ class Client:
log.debug('%s has successfully been registered as an event', coro.__name__)
return coro
def async_event(self, coro):
"""A shorthand decorator for :func:`asyncio.coroutine` + :meth:`event`."""
if not asyncio.iscoroutinefunction(coro):
coro = asyncio.coroutine(coro)
return self.event(coro)
async def change_presence(self, *, activity=None, status=None, afk=False):
"""|coro|