diff options
| author | MysterialPy <[email protected]> | 2017-11-13 22:07:54 +1000 |
|---|---|---|
| committer | bmintz <[email protected]> | 2018-01-05 23:09:45 -0600 |
| commit | 1863a1c6636f53592519320a173ec9573c090c0b (patch) | |
| tree | 9f367017d488a59f8bbbf7f1c166b57fa47b8163 | |
| parent | Point to the new server and vanity URL. (diff) | |
| download | discord.py-async.tar.xz discord.py-async.zip | |
Stop asyncio.async throwing a syntax error in 3.7.async
Maintains support for < 3.4.4
| -rw-r--r-- | discord/compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/compat.py b/discord/compat.py index 2cb2ec98..c68cd08b 100644 --- a/discord/compat.py +++ b/discord/compat.py @@ -29,7 +29,7 @@ import asyncio try: create_task = asyncio.ensure_future except AttributeError: - create_task = asyncio.async + create_task = getattr(asyncio, 'async') try: run_coroutine_threadsafe = asyncio.run_coroutine_threadsafe |