From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 1 Feb 2023 18:19:11 +0000 (-0800) Subject: gh-101498 : Fix asyncio.Timeout example in docs (GH-101499) X-Git-Tag: v3.11.2~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89442e18e1e17c0eb0eb06e5da489e1cb2d4219d;p=thirdparty%2FPython%2Fcpython.git 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> --- diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 24e43c3cbfcb..1fd7afad99a8 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.