Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Compare to tuple
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
  • Loading branch information
Dreamsorcerer and asvetlov authored Dec 1, 2021
commit a8f5c1fe4d7c86c91f72b612072153d6e388253d
2 changes: 1 addition & 1 deletion Lib/asyncio/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ async def wait_for(fut, timeout):
try:
await waiter
except exceptions.CancelledError as e:
if fut.done() and _SENTINEL in e.args:
if fut.done() and e.args == (_SENTINEL,):
return fut.result()
else:
fut.remove_done_callback(cb)
Expand Down