summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/compat/_scons_builtins.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/compat/_scons_builtins.py')
-rw-r--r--src/engine/SCons/compat/_scons_builtins.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/engine/SCons/compat/_scons_builtins.py b/src/engine/SCons/compat/_scons_builtins.py
index 012d6c2..59be7af 100644
--- a/src/engine/SCons/compat/_scons_builtins.py
+++ b/src/engine/SCons/compat/_scons_builtins.py
@@ -62,6 +62,22 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import builtins
try:
+ False
+except NameError:
+ # Pre-2.2 Python has no False keyword.
+ exec('builtins.False = not 1')
+ # Assign to False in this module namespace so it shows up in pydoc output.
+ #False = False
+
+try:
+ True
+except NameError:
+ # Pre-2.2 Python has no True keyword.
+ exec('builtins.True = not 0')
+ # Assign to True in this module namespace so it shows up in pydoc output.
+ #True = True
+
+try:
all
except NameError:
# Pre-2.5 Python has no all() function.
@@ -122,22 +138,6 @@ except NameError:
builtins.dict = dict
try:
- False
-except NameError:
- # Pre-2.2 Python has no False keyword.
- builtins.False = not 1
- # Assign to False in this module namespace so it shows up in pydoc output.
- #False = False
-
-try:
- True
-except NameError:
- # Pre-2.2 Python has no True keyword.
- builtins.True = not 0
- # Assign to True in this module namespace so it shows up in pydoc output.
- #True = True
-
-try:
file
except NameError:
# Pre-2.2 Python has no file() function.