]> granicus.if.org Git - python/commitdiff
Make __future__ features similar for with and absolute import since they were both...
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 28 Feb 2006 20:02:42 +0000 (20:02 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 28 Feb 2006 20:02:42 +0000 (20:02 +0000)
Lib/__future__.py

index e661260df7fca8bb897af717c626d23fa3ab4ef7..d95ce5f36720b066441343b71324461b5148b9af 100644 (file)
@@ -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)