mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Merge 3.3
This commit is contained in:
commit
24aa15959b
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue