Kaynağa Gözat

Fix asyncio.all_tasks() call

Marek Marczykowski-Górecki 3 yıl önce
ebeveyn
işleme
b4d6080f7b
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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()