We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c75f31 commit 025eeaaCopy full SHA for 025eeaa
2 files changed
Lib/asyncio/staggered.py
@@ -6,7 +6,7 @@
6
import typing
7
8
from . import events
9
-from . import futures
+from . import exceptions as exceptions_mod
10
from . import locks
11
from . import tasks
12
@@ -83,7 +83,7 @@ async def run_one_coro(
83
previous_failed: typing.Optional[locks.Event]) -> None:
84
# Wait for the previous task to finish, or for delay seconds
85
if previous_failed is not None:
86
- with contextlib.suppress(futures.TimeoutError):
+ with contextlib.suppress(exceptions_mod.TimeoutError):
87
# Use asyncio.wait_for() instead of asyncio.wait() here, so
88
# that if we get cancelled at this point, Event.wait() is also
89
# cancelled, otherwise there will be a "Task destroyed but it is
Misc/NEWS.d/next/Library/2019-12-24-10-43-13.bpo-39129.jVx5rW.rst
@@ -0,0 +1 @@
1
+Fix import path for ``asyncio.TimeoutError``
0 commit comments