[Python-checkins] r65293 - python/trunk/Doc/library/stdtypes.rst
benjamin.peterson
python-checkins at python.org
Tue Jul 29 21:28:49 CEST 2008
Author: benjamin.peterson
Date: Tue Jul 29 21:28:49 2008
New Revision: 65293
Log:
the from __future__ import with_statement isn't needed in 2.6
Modified:
python/trunk/Doc/library/stdtypes.rst
Modified: python/trunk/Doc/library/stdtypes.rst
==============================================================================
--- python/trunk/Doc/library/stdtypes.rst (original)
+++ python/trunk/Doc/library/stdtypes.rst Tue Jul 29 21:28:49 2008
@@ -2039,7 +2039,7 @@
the :keyword:`with` statement. For example, the following code will
automatically close *f* when the :keyword:`with` block is exited::
- from __future__ import with_statement
+ from __future__ import with_statement # This isn't required in Python 2.6
with open("hello.txt") as f:
for line in f:
More information about the Python-checkins
mailing list