mirror of
https://github.com/python/cpython.git
synced 2026-03-20 11:50:52 +00:00
gh-101498 : Fix asyncio.Timeout example in docs (#101499)
Doc/library/asyncio-task.rst#timeout
This commit is contained in:
parent
62251c3da0
commit
95fb0e0258
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue