summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-task.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 24e43c3..1fd7afa 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.