]> granicus.if.org Git - python/commitdiff
the from __future__ import with_statement isn't needed in 2.6
authorBenjamin Peterson <benjamin@python.org>
Tue, 29 Jul 2008 19:28:49 +0000 (19:28 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 29 Jul 2008 19:28:49 +0000 (19:28 +0000)
Doc/library/stdtypes.rst

index 41d87e4195597965878bb395ff6944105ae158fe..6802f3096b866510d4e276a44f80f6b73b5301ca 100644 (file)
@@ -2039,7 +2039,7 @@ Files have the following methods:
    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: