8000 Fix import path for asyncio.TimeoutError (GH-17691) · python/cpython@4ed79b7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ed79b7

Browse files
Fix import path for asyncio.TimeoutError (GH-17691)
(cherry picked from commit 025eeaa) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
1 parent 0846e5d commit 4ed79b7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Lib/asyncio/staggered.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import typing
77

88
from . import events
9-
from . import futures
9+
from . import exceptions as exceptions_mod
1010
from . import locks
1111
from . import tasks
1212

@@ -83,7 +83,7 @@ async def run_one_coro(
8383
previous_failed: typing.Optional[locks.Event]) -> None:
8484
# Wait for the previous task to finish, or for delay seconds
8585
if previous_failed is not None:
86-
with contextlib.suppress(futures.TimeoutError):
86+
with contextlib.suppress(exceptions_mod.TimeoutError):
8787
# Use asyncio.wait_for() instead of asyncio.wait() here, so
8888
# that if we get cancelled at this point, Event.wait() is also
8989
# cancelled, otherwise there will be a "Task destroyed but it is
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix import path for ``asyncio.TimeoutError``

0 commit comments

Comments
 (0)
0