Skip to content

Commit

Permalink
[3.12] Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (G…
Browse files Browse the repository at this point in the history
…H-111271) (GH-111272)

Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (GH-111271)

This reverts commit 7f31676.

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 c7d68f9)


Ref: #108427 (comment)

Co-authored-by: Zachary Ware <zach@python.org>
  • Loading branch information
miss-islington and zware committed Oct 24, 2023
1 parent edff7c1 commit b180120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/asyncio-task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b180120

Please sign in to comment.