Skip to content

Commit 89442e1

Browse files
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 <[email protected]>
1 parent c796d34 commit 89442e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/asyncio-task.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ Timeouts
666666
except TimeoutError:
667667
pass
668668

669-
if cm.expired:
669+
if cm.expired():
670670
print("Looks like we haven't finished on time.")
671671

672672
Timeout context managers can be safely nested.

0 commit comments

Comments
 (0)