gh-101498 : Fix asyncio.Timeout example in docs (#101499)
Doc/library/asyncio-task.rst#timeout
This commit is contained in:
parent
62251c3da0
commit
95fb0e0258
@ -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…
x
Reference in New Issue
Block a user