Browse Source
Stop asyncio.async throwing a syntax error in 3.7.
Maintains support for < 3.4.4
pull/900/head
MysterialPy
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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: |
|
|
|
_create_future = asyncio.AbstractEventLoop.create_future |
|
|
|