Sfoglia il codice sorgente

Fix asyncio.all_tasks() call

Marek Marczykowski-Górecki 3 anni fa
parent
commit
b4d6080f7b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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()