summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaj <51259329+workingpayload@users.noreply.github.com>2023-02-01 18:08:31 (GMT)
committerGitHub <noreply@github.com>2023-02-01 18:08:31 (GMT)
commit95fb0e02582b5673eff49694eb0dce1d7df52301 (patch)
tree3aa94f2d3e387da4fc27ea6ddb6ad10228c88b93 /Doc
parent62251c3da06eb4662502295697f39730565b1717 (diff)
downloadcpython-95fb0e02582b5673eff49694eb0dce1d7df52301.zip
cpython-95fb0e02582b5673eff49694eb0dce1d7df52301.tar.gz
cpython-95fb0e02582b5673eff49694eb0dce1d7df52301.tar.bz2
gh-101498 : Fix asyncio.Timeout example in docs (#101499)
Doc/library/asyncio-task.rst#timeout
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 9a42b96..3911258 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.