]> granicus.if.org Git - python/commitdiff
Minor typo in example.
authorBarry Warsaw <barry@python.org>
Fri, 19 Apr 2013 15:32:25 +0000 (11:32 -0400)
committerBarry Warsaw <barry@python.org>
Fri, 19 Apr 2013 15:32:25 +0000 (11:32 -0400)
Doc/library/contextlib.rst

index 154e3954a624bb3a1655cbe3424e54564aae6607..fee5067bd00c0283ae6f0b3154c78d4159599e18 100644 (file)
@@ -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.