From: Raymond Hettinger Date: Mon, 26 May 2014 01:06:04 +0000 (-0700) Subject: Issue 21558: Fix a typo in the contextlib docs X-Git-Tag: v3.4.2rc1~503 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e8e2df3daad12f62fd9fd7c51187b162d77a48fe;p=thirdparty%2FPython%2Fcpython.git Issue 21558: Fix a typo in the contextlib docs --- diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 82efd0cca151..9f174d787b34 100644 --- a/Doc/library/contextlib.rst +++ b/Doc/library/contextlib.rst @@ -371,7 +371,7 @@ some of the context managers being optional:: with ExitStack() as stack: for resource in resources: stack.enter_context(resource) - if need_special resource: + if need_special_resource(): special = acquire_special_resource() stack.callback(release_special_resource, special) # Perform operations that use the acquired resources