Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
24aa1595
Commit
24aa1595
authored
Apr 19, 2013
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge 3.3
parents
03a0c275
0aa685a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Doc/library/contextlib.rst
Doc/library/contextlib.rst
+1
-1
No files found.
Doc/library/contextlib.rst
View file @
24aa1595
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment