summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/tasks.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-07 01:50:25 (GMT)
committerPablo Galindo <pablogsal@gmail.com>2022-10-24 16:09:41 (GMT)
commit981b509784c733c54d47bd4d1ceea34fc7ebcac3 (patch)
treecd7d3a1ed017795083759ecde77f3a3c55fd57da /Lib/asyncio/tasks.py
parentf0083923faa1759e4770cf03bd45312fea6df729 (diff)
downloadcpython-981b509784c733c54d47bd4d1ceea34fc7ebcac3.zip
cpython-981b509784c733c54d47bd4d1ceea34fc7ebcac3.tar.gz
cpython-981b509784c733c54d47bd4d1ceea34fc7ebcac3.tar.bz2
GH-90985: Revert "Deprecate passing a message into cancel()" (GH-97999)
Reason: we were too hasty in deprecating this. We shouldn't deprecate it before we have a replacement. (cherry picked from commit 09de8d7aafece264720afbca3052a63eee413b73) Co-authored-by: Guido van Rossum <guido@python.org>
Diffstat (limited to 'Lib/asyncio/tasks.py')
-rw-r--r--Lib/asyncio/tasks.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
index e48da0f..3e07ce5 100644
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -207,11 +207,6 @@ class Task(futures._PyFuture): # Inherit Python Task implementation
This also increases the task's count of cancellation requests.
"""
- if msg is not None:
- warnings.warn("Passing 'msg' argument to Task.cancel() "
- "is deprecated since Python 3.11, and "
- "scheduled for removal in Python 3.14.",
- DeprecationWarning, stacklevel=2)
self._log_traceback = False
if self.done():
return False