summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-05-26 01:06:04 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-05-26 01:06:04 (GMT)
commite8e2df3daad12f62fd9fd7c51187b162d77a48fe (patch)
tree6a04fff685c8da739c464db433563a27d0e6bc4e
parent978c6abced7f129a66c39135139e60b3e0fa4e0b (diff)
downloadcpython-e8e2df3daad12f62fd9fd7c51187b162d77a48fe.zip
cpython-e8e2df3daad12f62fd9fd7c51187b162d77a48fe.tar.gz
cpython-e8e2df3daad12f62fd9fd7c51187b162d77a48fe.tar.bz2
Issue 21558: Fix a typo in the contextlib docs
-rw-r--r--Doc/library/contextlib.rst2
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