diff options
Diffstat (limited to 'Lib/__future__.py')
-rw-r--r-- | Lib/__future__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/__future__.py b/Lib/__future__.py index fc47459736..e49c663645 100644 --- a/Lib/__future__.py +++ b/Lib/__future__.py @@ -51,6 +51,7 @@ all_feature_names = [ "nested_scopes", "generators", "division", + "absolute_import", ] __all__ = ["all_feature_names"] + all_feature_names @@ -62,6 +63,7 @@ __all__ = ["all_feature_names"] + all_feature_names CO_NESTED = 0x0010 # nested_scopes CO_GENERATOR_ALLOWED = 0 # generators (obsolete, was 0x1000) CO_FUTURE_DIVISION = 0x2000 # division +CO_FUTURE_ABSIMPORT = 0x4000 # absolute_import class _Feature: def __init__(self, optionalRelease, mandatoryRelease, compiler_flag): @@ -102,3 +104,7 @@ generators = _Feature((2, 2, 0, "alpha", 1), division = _Feature((2, 2, 0, "alpha", 2), (3, 0, 0, "alpha", 0), CO_FUTURE_DIVISION) + +absolute_import = _Feature((2, 5, 0, "alpha", 1), + (2, 7, 0, "alpha", 0), + CO_FUTURE_ABSIMPORT) |