diff options
author | Youri Ackx <varia@ackx.net> | 2020-10-02 16:59:19 +0200 |
---|---|---|
committer | Youri Ackx <varia@ackx.net> | 2020-10-02 16:59:19 +0200 |
commit | 5936e96bb059dc766d0e87fc569f61dfb5eca963 (patch) | |
tree | cd0f281741631cc8e207d8912bdf54152d4ee840 | |
parent | 74df4c141934c01b3b2f7e27f8438b07b1c12b63 (diff) | |
download | blinker-5936e96bb059dc766d0e87fc569f61dfb5eca963.tar.gz |
Fix incorrect import statement
- Attempt to import asyncio.create_task
- Fallback on asyncio.ensure_future
- Remove obsolete asyncio.async call
-rw-r--r-- | blinker/_async.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/blinker/_async.py b/blinker/_async.py index 5a88f13..2b530e4 100644 --- a/blinker/_async.py +++ b/blinker/_async.py @@ -4,9 +4,9 @@ from blinker.base import Signal try: - schedule = asyncio.ensure_future + schedule = asyncio.create_task except AttributeError: - schedule = asyncio.async + schedule = asyncio.ensure_future @asyncio.coroutine |