File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
import typing
7
7
8
8
from . import events
9
- from . import futures
9
+ from . import exceptions as exceptions_mod
10
10
from . import locks
11
11
from . import tasks
12
12
@@ -83,7 +83,7 @@ async def run_one_coro(
83
83
previous_failed : typing .Optional [locks .Event ]) -> None :
84
84
# Wait for the previous task to finish, or for delay seconds
85
85
if previous_failed is not None :
86
- with contextlib .suppress (futures .TimeoutError ):
86
+ with contextlib .suppress (exceptions_mod .TimeoutError ):
87
87
# Use asyncio.wait_for() instead of asyncio.wait() here, so
88
88
# that if we get cancelled at this point, Event.wait() is also
89
89
# cancelled, otherwise there will be a "Task destroyed but it is
Original file line number Diff line number Diff line change
1
+ Fix import path for ``asyncio.TimeoutError ``
You can’t perform that action at this time.
0 commit comments