mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] contextlib docs: Clean up redundant 'up' after 'cleanup' (GH-119873)
Reported by Michael Kass on docs@
(cherry picked from commit f3fc800d5f
)
This commit is contained in:
parent
045be7729e
commit
2f7fada580
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue