summaryrefslogtreecommitdiff
path: root/Lib/__future__.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-02-28 20:02:42 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-02-28 20:02:42 +0000
commit9193491eb36d7edf2e1b51cf5a74d46a7ac314d5 (patch)
tree01ad345cd22ff916baab1ad0e8fcb3522277cdd2 /Lib/__future__.py
parent5e9f1fa706518e0c5c1052652c9783d4f8672b57 (diff)
downloadcpython-git-9193491eb36d7edf2e1b51cf5a74d46a7ac314d5.tar.gz
Make __future__ features similar for with and absolute import since they were both added before a1
Diffstat (limited to 'Lib/__future__.py')
-rw-r--r--Lib/__future__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/__future__.py b/Lib/__future__.py
index e661260df7..d95ce5f367 100644
--- a/Lib/__future__.py
+++ b/Lib/__future__.py
@@ -65,7 +65,7 @@ CO_NESTED = 0x0010 # nested_scopes
CO_GENERATOR_ALLOWED = 0 # generators (obsolete, was 0x1000)
CO_FUTURE_DIVISION = 0x2000 # division
CO_FUTURE_ABSIMPORT = 0x4000 # absolute_import
-CO_FUTURE_WITH_STATEMENT = 0x8000 # with statement added in 2.5
+CO_FUTURE_WITH_STATEMENT = 0x8000 # with statement
class _Feature:
def __init__(self, optionalRelease, mandatoryRelease, compiler_flag):
@@ -111,6 +111,6 @@ absolute_import = _Feature((2, 5, 0, "alpha", 1),
(2, 7, 0, "alpha", 0),
CO_FUTURE_ABSIMPORT)
-with_statement = _Feature((2, 5, 0, "alpha", 2),
+with_statement = _Feature((2, 5, 0, "alpha", 1),
(2, 6, 0, "alpha", 0),
CO_FUTURE_WITH_STATEMENT)