From: Raj <51259329+workingpayload@users.noreply.github.com> Date: Wed, 1 Feb 2023 18:08:31 +0000 (+0530) Subject: gh-101498 : Fix asyncio.Timeout example in docs (#101499) X-Git-Tag: v3.12.0a5~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95fb0e02582b5673eff49694eb0dce1d7df52301;p=thirdparty%2FPython%2Fcpython.git gh-101498 : Fix asyncio.Timeout example in docs (#101499) Doc/library/asyncio-task.rst#timeout --- 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.