summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-24 16:26:31 (GMT)
committerGitHub <noreply@github.com>2023-10-24 16:26:31 (GMT)
commitb180120468c100e8c77696ed90b892db59c699c7 (patch)
tree812af431fcd545954a760833ca06f6783003b91a
parentedff7c1614d148f9c9bc66e834e387e5930b7a49 (diff)
downloadcpython-b180120468c100e8c77696ed90b892db59c699c7.zip
cpython-b180120468c100e8c77696ed90b892db59c699c7.tar.gz
cpython-b180120468c100e8c77696ed90b892db59c699c7.tar.bz2
[3.12] Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271) (GH-111272)
Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271) This reverts commit 7f316763402a7d5556deecc3acd06cb719e189b3. The change resulted in a tautology and should not have been made. There may be an opportunity for additional clarity in this section, but this change wasn't it :) (cherry picked from commit c7d68f907ad3e3aa17546df92a32bddb145a69bf) Ref: https://github.com/python/cpython/pull/108427#-issuecomment-1777525740 Co-authored-by: Zachary Ware <zach@python.org>
-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 eb9db37..a3ea050 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -589,7 +589,7 @@ Shielding From Cancellation
is equivalent to::
- res = await shield(something())
+ res = await something()
*except* that if the coroutine containing it is cancelled, the
Task running in ``something()`` is not cancelled. From the point