]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101498 : Fix asyncio.Timeout example in docs (#101499)
authorRaj <51259329+workingpayload@users.noreply.github.com>
Wed, 1 Feb 2023 18:08:31 +0000 (23:38 +0530)
committerGitHub <noreply@github.com>
Wed, 1 Feb 2023 18:08:31 +0000 (10:08 -0800)
Doc/library/asyncio-task.rst#timeout

Doc/library/asyncio-task.rst

index 9a42b963167685b9985ab4180093959b784d46e3..39112580285cc0c6400c42a97079d31e54bc96d7 100644 (file)
@@ -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.