[Python-checkins] cpython (3.4): Issue 21558: Fix a typo in the contextlib docs

raymond.hettinger python-checkins at python.org
Mon May 26 03:06:36 CEST 2014


http://hg.python.org/cpython/rev/ebeade01bd8e
changeset:   90834:ebeade01bd8e
branch:      3.4
parent:      90831:7ea6c8eb91e2
user:        Raymond Hettinger <python at rcn.com>
date:        Sun May 25 18:06:04 2014 -0700
summary:
  Issue 21558:  Fix a typo in the contextlib docs

files:
  Doc/library/contextlib.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -371,7 +371,7 @@
     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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list