summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-02-01 18:19:11 (GMT)
committerGitHub <noreply@github.com>2023-02-01 18:19:11 (GMT)
commit89442e18e1e17c0eb0eb06e5da489e1cb2d4219d (patch)
treeda506315a71e7bc469e7f31c6773bde37aa9d250 /Doc
parentc796d34b2a121bcb89c6afd79160f95ece7cc945 (diff)
downloadcpython-89442e18e1e17c0eb0eb06e5da489e1cb2d4219d.zip
cpython-89442e18e1e17c0eb0eb06e5da489e1cb2d4219d.tar.gz
cpython-89442e18e1e17c0eb0eb06e5da489e1cb2d4219d.tar.bz2
gh-101498 : Fix asyncio.Timeout example in docs (GH-101499)
Doc/library/asyncio-task.rstGH-timeout (cherry picked from commit 95fb0e02582b5673eff49694eb0dce1d7df52301) Co-authored-by: Raj <51259329+workingpayload@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-task.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 24e43c3..1fd7afa 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -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.