Skip to content

Commit 95fb0e0

Browse files
gh-101498 : Fix asyncio.Timeout example in docs (#101499)
Doc/library/asyncio-task.rst#timeout
1 parent 62251c3 commit 95fb0e0

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)