We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12bdf0e commit e56d7c1Copy full SHA for e56d7c1
Lib/asyncio/timeouts.py
@@ -92,7 +92,9 @@ async def __aexit__(
92
if self._state is _State.EXPIRING:
93
self._state = _State.EXPIRED
94
95
- if self._task.uncancel() == 0 and exc_type in (None, exceptions.CancelledError):
+ if (self._task.uncancel() == 0
96
+ and exc_type in (None, exceptions.CancelledError)
97
+ ):
98
# Since there are no outstanding cancel requests, we're
99
# handling this.
100
raise TimeoutError
0 commit comments