From 1dd037e98ad73b029b060ea806ba71824ae1e8ce Mon Sep 17 00:00:00 2001 From: Raj <51259329+workingpayload@users.noreply.github.com> Date: Wed, 1 Feb 2023 23:38:31 +0530 Subject: [PATCH] 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> --- Doc/library/asyncio-task.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 24e43c3cbfcb93..1fd7afad99a830 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.