Browse Source

Fix asyncio.all_tasks() call

Marek Marczykowski-Górecki 3 năm trước cách đây
mục cha
commit
b4d6080f7b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      qubesmanager/utils.py

+ 1 - 1
qubesmanager/utils.py

@@ -459,7 +459,7 @@ def format_dependencies_list(dependencies):
 
 
 def loop_shutdown():
-    pending = asyncio.Task.all_tasks()
+    pending = asyncio.all_tasks()
     for task in pending:
         with suppress(asyncio.CancelledError):
             task.cancel()