Commit 4144455
committed
Clarify context manager version availability
It's only Python 2.5.X that needs the __future__ with.
See https://www.python.org/dev/peps/pep-0343/
"In Python 2.5, the new syntax will only be recognized if a future
statement is present:
from __future__ import with_statement
<snip>
In Python 2.6, the new syntax will always be recognized; 'with'
and 'as' are always keywords."1 parent 8501da7 commit 4144455
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments