8000 gh-101498 : Fix asyncio.Timeout example in docs (#101499) · python/cpython@95fb0e0 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 1 addition & 1 deletion
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)
0