Skip to content

Commit

Permalink
contextlib docs: Clean up redundant 'up' after 'cleanup' (GH-119867)
Browse files Browse the repository at this point in the history
Reported by Michael Kass on docs@
  • Loading branch information
zware authored May 31, 2024
1 parent 015b1fd commit f3fc800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/contextlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3fc800

Please sign in to comment.