10000 [3.12] Revert "Fix a code snippet typo in asyncio docs (GH-108427)" (… · python/cpython@b180120 · GitHub
[go: up one dir, main page]

Skip to content

Commit b180120

Browse files
[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 7f31676. The change resulted in a tautology and should not have been made. There may be an opport EBF3 unity 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>
1 parent edff7c1 commit b180120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/asyncio-task.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ Shielding From Cancellation
589589

590590
is equivalent to::
591591

592-
res = await shield(something())
592+
res = await something()
593593

594594
*except* that if the coroutine containing it is cancelled, the
595595
Task running in ``something()`` is not cancelled. From the point

0 commit comments

Comments
 (0)
0