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:
Miss Islington (bot) 2023-02-01 10:19:11 -08:00 committed by GitHub
parent c796d34b2a
commit 89442e18e1
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.