mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-08 04:38:42 +00:00
Stop asyncio.async throwing a syntax error in 3.7.
Maintains support for < 3.4.4
This commit is contained in:
parent
fc9eb93486
commit
1863a1c663
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user