summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-02 21:06:46 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-02 21:06:46 (GMT)
commit8d21357fb5d15dcebb790a0594de3c7afddd8493 (patch)
tree106754f9a08a342f1cf191e09aac0d1e5efca555 /Lib
parent66f29284797c31190ad06554d9909d7ed8a894d1 (diff)
downloadcpython-8d21357fb5d15dcebb790a0594de3c7afddd8493.zip
cpython-8d21357fb5d15dcebb790a0594de3c7afddd8493.tar.gz
cpython-8d21357fb5d15dcebb790a0594de3c7afddd8493.tar.bz2
Issue #21601: Document asyncio.Task.cancel(). Initial patch written by Vajrasky
Kok.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/tasks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
index 45a6342..2aa568b 100644
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -269,9 +269,9 @@ class Task(futures.Future):
print(line, file=file, end='')
def cancel(self):
- """Request that a task to cancel itself.
+ """Request this task to cancel itself.
- This arranges for a CancellationError to be thrown into the
+ This arranges for a CancelledError to be thrown into the
wrapped coroutine on the next cycle through the event loop.
The coroutine then has a chance to clean up or even deny
the request using try/except/finally.