mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Python3.8 support. Ref https://github.com/GNS3/gns3-gui/issues/2895
This commit is contained in:
1 parent
2fd4b2cbc8
commit
a98fc2d308
6 files changed
+10
-9
No files matched your search
@@ -22,8 +22,6 @@ import sys
|
||||
import os
|
||||
import threading
|
||||
|
||||
from asyncio.futures import CancelledError
|
||||
|
||||
|
||||
async def wait_run_in_executor(func, *args, **kwargs):
|
||||
"""
|
||||
@@ -56,7 +54,7 @@ async def cancellable_wait_run_in_executor(func, *args, **kwargs):
|
||||
kwargs['stopped_event'] = stopped_event
|
||||
try:
|
||||
await wait_run_in_executor(func, *args, **kwargs)
|
||||
except CancelledError:
|
||||
except asyncio.CancelledError:
|
||||
stopped_event.set()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user