]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Revert "Fix a code snippet typo in asyncio docs (#108427)" (GH-111271)
authorZachary Ware <zach@python.org>
Tue, 24 Oct 2023 16:09:13 +0000 (11:09 -0500)
committerGitHub <noreply@github.com>
Tue, 24 Oct 2023 16:09:13 +0000 (11:09 -0500)
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 :)

Ref: https://github.com/python/cpython/pull/108427#issuecomment-1777525740

Doc/library/asyncio-task.rst

index 88fdf41c7b2a3e2d97fc16a2b73c5cebd60dec7c..797065c8ccf89416500367b5752f69474d3b2da9 100644 (file)
@@ -592,7 +592,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