summaryrefslogtreecommitdiff
path: root/kvmd/aiotools.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-12-02 14:37:48 +0300
committerDevaev Maxim <[email protected]>2020-12-02 14:37:48 +0300
commit2b064a3bee87a13930e1212b583278ff2a8117db (patch)
tree13aec1649cdda610c3e293386a41698eaaa3ff00 /kvmd/aiotools.py
parent9dbf7f1d0ba5639ec5a4a699213660d72a3ba1c4 (diff)
basic python 3.9 support
Diffstat (limited to 'kvmd/aiotools.py')
-rw-r--r--kvmd/aiotools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/aiotools.py b/kvmd/aiotools.py
index b5d9e2fd..dd22b6c5 100644
--- a/kvmd/aiotools.py
+++ b/kvmd/aiotools.py
@@ -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)
]