Skip to content

Commit

Permalink
Stop asyncio.async throwing a syntax error in 3.7.
Browse files Browse the repository at this point in the history
Maintains support for < 3.4.4
  • Loading branch information
EvieePy authored Nov 13, 2017
1 parent 98c8928 commit 0965847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
try:
create_task = asyncio.ensure_future
except AttributeError:
create_task = asyncio.async
create_task = getattr(asyncio, 'async')

try:
_create_future = asyncio.AbstractEventLoop.create_future
Expand Down

2 comments on commit 0965847

@fd1f
Copy link

@fd1f fd1f commented on 0965847 Dec 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much!

@crococ2003
Copy link

@crococ2003 crococ2003 commented on 0965847 Mar 24, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create_task = asyncio.async
^
SyntaxError: invalid syntax
Press any key to continue . . .

This error is coming now

Please sign in to comment.