aboutsummaryrefslogtreecommitdiff
path: root/discord/compat.py
diff options
context:
space:
mode:
authorMysterialPy <[email protected]>2017-11-13 22:07:54 +1000
committerbmintz <[email protected]>2018-01-05 23:09:45 -0600
commit1863a1c6636f53592519320a173ec9573c090c0b (patch)
tree9f367017d488a59f8bbbf7f1c166b57fa47b8163 /discord/compat.py
parentPoint to the new server and vanity URL. (diff)
downloaddiscord.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
Diffstat (limited to 'discord/compat.py')
-rw-r--r--discord/compat.py2
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