mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
basic python 3.9 support
This commit is contained in:
@@ -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)
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user