Skip to content
Merged
Changes from all commits
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
gh-101498 : Fix asyncio.Timeout example in docs (GH-101499)
Doc/library/asyncio-task.rstGH-timeout
(cherry picked from commit 95fb0e0)

Co-authored-by: Raj <51259329+workingpayload@users.noreply.github.com>
  • Loading branch information
workingpayload authored and miss-islington committed Feb 1, 2023
commit 1dd037e98ad73b029b060ea806ba71824ae1e8ce
2 changes: 1 addition & 1 deletion Doc/library/asyncio-task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ Timeouts
except TimeoutError:
pass

if cm.expired:
if cm.expired():
print("Looks like we haven't finished on time.")

Timeout context managers can be safely nested.
Expand Down