gh-101498 : Fix asyncio.Timeout example in docs (#101499)

Doc/library/asyncio-task.rst#timeout
This commit is contained in:
Raj 2023-02-01 23:38:31 +05:30 committed by GitHub
parent 62251c3da0
commit 95fb0e0258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.