Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a986dfa

Browse files
committed
Merged revisions 65293 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r65293 | benjamin.peterson | 2008-07-29 14:28:49 -0500 (Tue, 29 Jul 2008) | 1 line the from __future__ import with_statement isn't needed in 2.6 ........
1 parent d18de0e commit a986dfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ Files have the following methods:
20092009
the :keyword:`with` statement. For example, the following code will
20102010
automatically close *f* when the :keyword:`with` block is exited::
20112011

2012-
from __future__ import with_statement
2012+
from __future__ import with_statement # This isn't required in Python 2.6
20132013

20142014
with open("hello.txt") as f:
20152015
for line in f:

0 commit comments

Comments
 (0)