mirror of
https://github.com/python/cpython.git
synced 2026-07-26 20:03:16 -04:00
gh-101498 : Fix asyncio.Timeout example in docs (#101499)
Doc/library/asyncio-task.rst#timeout
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user