mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Stop asyncio.async throwing a syntax error in 3.7.
Maintains support for < 3.4.4
This commit is contained in:
1 parent
fc9eb93486
commit
1863a1c663
1 file changed
+1
-1
+1
-1
@@ -29,7 +29,7 @@ import asyncio
|
|||||||
try:
|
try:
|
||||||
create_task = asyncio.ensure_future
|
create_task = asyncio.ensure_future
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
create_task = asyncio.async
|
create_task = getattr(asyncio, 'async')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
run_coroutine_threadsafe = asyncio.run_coroutine_threadsafe
|
run_coroutine_threadsafe = asyncio.run_coroutine_threadsafe
|
||||||
|
|||||||
Reference in new issue
Block a user