diff options
| author | Rapptz <[email protected]> | 2017-05-09 20:35:18 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-09 20:35:18 -0400 |
| commit | e557f69c8365665f5a636d0942e9a11e98bedb45 (patch) | |
| tree | 4f04903e260e3cfe8aefc9771a927645589f835e /docs/_static | |
| parent | Remove Guild.change_vanity_invite in favour of Guild.edit (diff) | |
| download | discord.py-e557f69c8365665f5a636d0942e9a11e98bedb45.tar.xz discord.py-e557f69c8365665f5a636d0942e9a11e98bedb45.zip | |
Make sure that websockets.connect is a coroutine.
In 3.5.0 and 3.5.1 asyncio.ensure_future requires a Future or a
coroutine otherwise a TypeError is raised. The issue is that the
websockets.connect call is an awaitable rather than a coroutine.
asyncio.ensure_future did not gain support for awaitables until 3.5.2.
This patch allows 3.5.0 and 3.5.1 to connect regardless of their python
version.
Diffstat (limited to 'docs/_static')
0 files changed, 0 insertions, 0 deletions