Commit 66b14de7 authored by Benjamin Peterson's avatar Benjamin Peterson

the from __future__ import with_statement isn't needed in 2.6

parent ff5f16e4
...@@ -2039,7 +2039,7 @@ Files have the following methods: ...@@ -2039,7 +2039,7 @@ Files have the following methods:
the :keyword:`with` statement. For example, the following code will the :keyword:`with` statement. For example, the following code will
automatically close *f* when the :keyword:`with` block is exited:: 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: with open("hello.txt") as f:
for line in f: for line in f:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment