diff options
author | Devaev Maxim <[email protected]> | 2020-12-02 14:37:48 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-12-02 14:37:48 +0300 |
commit | 2b064a3bee87a13930e1212b583278ff2a8117db (patch) | |
tree | 13aec1649cdda610c3e293386a41698eaaa3ff00 /kvmd/aiotools.py | |
parent | 9dbf7f1d0ba5639ec5a4a699213660d72a3ba1c4 (diff) |
basic python 3.9 support
Diffstat (limited to 'kvmd/aiotools.py')
-rw-r--r-- | kvmd/aiotools.py | 2 |
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) ] |