]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] contextlib docs: Clean up redundant 'up' after 'cleanup' (GH-119873)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 31 May 2024 17:27:57 +0000 (19:27 +0200)
committerGitHub <noreply@github.com>
Fri, 31 May 2024 17:27:57 +0000 (17:27 +0000)
Reported by Michael Kass on docs@
(cherry picked from commit f3fc800d5f17b144a752a262102b750bedcdaa14)

Doc/library/contextlib.rst

index 73e53aec9cbf1c187634e34c85226c241f4fede8..bad9da52d6a6ca9fdff0013a44a46f03a5d11da4 100644 (file)
@@ -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