From: Benjamin Peterson Date: Tue, 29 Jul 2008 19:28:49 +0000 (+0000) Subject: the from __future__ import with_statement isn't needed in 2.6 X-Git-Tag: v2.6b3~207 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66b14de7bbea8659fb8344d250662eae5ed9d820;p=thirdparty%2FPython%2Fcpython.git the from __future__ import with_statement isn't needed in 2.6 --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 41d87e419559..6802f3096b86 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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: