From e8e2df3daad12f62fd9fd7c51187b162d77a48fe Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 25 May 2014 18:06:04 -0700 Subject: [PATCH] Issue 21558: Fix a typo in the contextlib docs --- Doc/library/contextlib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 82efd0cca15..9f174d787b3 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