mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.13] contextlib docs: Clean up redundant 'up' after 'cleanup' (GH-119872)
Reported by Michael Kass on docs@
(cherry picked from commit f3fc800d5f
)
This commit is contained in:
parent
24e3a8a9a6
commit
eb5e19aa68
1 changed files with 1 additions and 1 deletions
|
@ -796,7 +796,7 @@ executing that callback::
|
||||||
if result:
|
if result:
|
||||||
stack.pop_all()
|
stack.pop_all()
|
||||||
|
|
||||||
This allows the intended cleanup up behaviour to be made explicit up front,
|
This allows the intended cleanup behaviour to be made explicit up front,
|
||||||
rather than requiring a separate flag variable.
|
rather than requiring a separate flag variable.
|
||||||
|
|
||||||
If a particular application uses this pattern a lot, it can be simplified
|
If a particular application uses this pattern a lot, it can be simplified
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue