mirror of https://github.com/python/cpython.git
[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
|
@ -796,7 +796,7 @@ executing that callback::
|
|||
if result:
|
||||
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.
|
||||
|
||||
If a particular application uses this pattern a lot, it can be simplified
|
||||
|
|
Loading…
Reference in New Issue