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
parent
commit
096584733e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/compat.py

2
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

Loading…
Cancel
Save