summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2013-04-19 15:32:25 (GMT)
committerBarry Warsaw <barry@python.org>2013-04-19 15:32:25 (GMT)
commit0aa685a33c49ebb731c565348355b6c9a756b831 (patch)
tree5afcc2825c9dc2fc2650004c784ec0e82a6bbf05 /Doc/library
parent1b6424fc4bda9df0c48dfd308b236ae3704a01b4 (diff)
downloadcpython-0aa685a33c49ebb731c565348355b6c9a756b831.zip
cpython-0aa685a33c49ebb731c565348355b6c9a756b831.tar.gz
cpython-0aa685a33c49ebb731c565348355b6c9a756b831.tar.bz2
Minor typo in example.
Diffstat (limited to 'Doc/library')
-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 154e395..fee5067 100644
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -259,7 +259,7 @@ Functions and classes provided:
with ExitStack() as stack:
files = [stack.enter_context(open(fname)) for fname in filenames]
- close_files = stack.pop_all().close
+ close_files = stack.pop_all().close()
# If opening any file fails, all previously opened files will be
# closed automatically. If all files are opened successfully,
# they will remain open even after the with statement ends.