[Python-checkins] gh-101498 : Fix asyncio.Timeout example in docs (#101499)
gvanrossum
webhook-mailer at python.org
Wed Feb 1 13:08:38 EST 2023
https://github.com/python/cpython/commit/95fb0e02582b5673eff49694eb0dce1d7df52301
commit: 95fb0e02582b5673eff49694eb0dce1d7df52301
branch: main
author: Raj <51259329+workingpayload at users.noreply.github.com>
committer: gvanrossum <gvanrossum at gmail.com>
date: 2023-02-01T10:08:31-08:00
summary:
gh-101498 : Fix asyncio.Timeout example in docs (#101499)
Doc/library/asyncio-task.rst#timeout
files:
M Doc/library/asyncio-task.rst
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 9a42b9631676..39112580285c 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.
More information about the Python-checkins
mailing list