We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
asyncio.Lock._wake_up_first
1 parent 32823af commit 1b20d19Copy full SHA for 1b20d19
1 file changed
Lib/asyncio/locks.py
@@ -145,10 +145,7 @@ def _wake_up_first(self):
145
"""Ensure that the first waiter will wake up."""
146
if not self._waiters:
147
return
148
- try:
149
- fut = next(iter(self._waiters))
150
- except StopIteration:
151
- return
+ fut = next(iter(self._waiters))
152
153
# .done() means that the waiter is already set to wake up.
154
if not fut.done():
0 commit comments