diff options
author | Raymond Hettinger <python@rcn.com> | 2014-05-26 01:06:27 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-05-26 01:06:27 (GMT) |
commit | fa4ed0c145f2e17ccd59c2180cbf7be07c8c872d (patch) | |
tree | 0c24980b8393e2b6df05ef892b33b5509149743e /Doc | |
parent | d58a0b6876bf574c93f60896e0c61fd687febe16 (diff) | |
parent | e8e2df3daad12f62fd9fd7c51187b162d77a48fe (diff) | |
download | cpython-fa4ed0c145f2e17ccd59c2180cbf7be07c8c872d.zip cpython-fa4ed0c145f2e17ccd59c2180cbf7be07c8c872d.tar.gz cpython-fa4ed0c145f2e17ccd59c2180cbf7be07c8c872d.tar.bz2 |
merge
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/contextlib.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 82efd0c..9f174d7 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 |