diff options
| author | MysterialPy <[email protected]> | 2017-11-13 22:07:54 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-11-13 22:07:54 +1000 |
| commit | 096584733e8a8025b13f46fa920e18abe19352c1 (patch) | |
| tree | efcdef89172b69b14ec13a99ea25cd48cfa1d767 | |
| parent | Missing Voice Regions (diff) | |
| download | discord.py-096584733e8a8025b13f46fa920e18abe19352c1.tar.xz discord.py-096584733e8a8025b13f46fa920e18abe19352c1.zip | |
Stop asyncio.async throwing a syntax error in 3.7.
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 3b9e66ff..9c51e784 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: _create_future = asyncio.AbstractEventLoop.create_future |