basic python 3.9 support

This commit is contained in:
Devaev Maxim
2020-12-02 14:37:48 +03:00
parent 9dbf7f1d0b
commit 2b064a3bee
9 changed files with 10 additions and 7 deletions

View File

@@ -65,7 +65,7 @@ def create_short_task(coro: Coroutine) -> asyncio.Task:
def get_short_tasks() -> List[asyncio.Task]:
return [
task
for task in asyncio.Task.all_tasks()
for task in asyncio.all_tasks()
if getattr(task, _ATTR_SHORT_TASK, False)
]