mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
gh-101498 : Fix asyncio.Timeout example in docs (GH-101499)
Doc/library/asyncio-task.rstGH-timeout
(cherry picked from commit 95fb0e0258
)
Co-authored-by: Raj <51259329+workingpayload@users.noreply.github.com>
This commit is contained in:
parent
c796d34b2a
commit
89442e18e1
1 changed files with 1 additions and 1 deletions
|
@ -666,7 +666,7 @@ Timeouts
|
||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if cm.expired:
|
if cm.expired():
|
||||||
print("Looks like we haven't finished on time.")
|
print("Looks like we haven't finished on time.")
|
||||||
|
|
||||||
Timeout context managers can be safely nested.
|
Timeout context managers can be safely nested.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue