[Python-checkins] r42672 - python/trunk/Lib/__future__.py

neal.norwitz python-checkins at python.org
Tue Feb 28 21:02:43 CET 2006


Author: neal.norwitz
Date: Tue Feb 28 21:02:42 2006
New Revision: 42672

Modified:
   python/trunk/Lib/__future__.py
Log:
Make __future__ features similar for with and absolute import since they were both added before a1

Modified: python/trunk/Lib/__future__.py
==============================================================================
--- python/trunk/Lib/__future__.py	(original)
+++ python/trunk/Lib/__future__.py	Tue Feb 28 21:02:42 2006
@@ -65,7 +65,7 @@
 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 @@
                            (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)


More information about the Python-checkins mailing list