8000 Revert "Fix a code snippet typo in asyncio docs (#108427)" (GH-111271) · python/cpython@c7d68f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit c7d68f9

Browse files
authored
Revert "Fix a code snippet typo in asyncio docs (#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 :) Ref: #108427 (comment)
1 parent 1198076 commit c7d68f9

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
@@ -592,7 +592,7 @@ Shielding From Cancellation
592592

593593
is equivalent to::
594594

595-
res = await shield(something())
595+
res = await something()
596596

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

0 commit comments

Comments
 (0)
0