Commit 24aa1595 authored by Barry Warsaw's avatar Barry Warsaw

Merge 3.3

parents 03a0c275 0aa685a3
...@@ -279,7 +279,7 @@ Functions and classes provided: ...@@ -279,7 +279,7 @@ Functions and classes provided:
with ExitStack() as stack: with ExitStack() as stack:
files = [stack.enter_context(open(fname)) for fname in filenames] 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 # If opening any file fails, all previously opened files will be
# closed automatically. If all files are opened successfully, # closed automatically. If all files are opened successfully,
# they will remain open even after the with statement ends. # they will remain open even after the with statement ends.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment