A bit of a blind checkin, but there's no need to put the compatibility names
authorgregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 31 Mar 2010 06:02:09 +0000 (06:02 +0000)
committergregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 31 Mar 2010 06:02:09 +0000 (06:02 +0000)
in the __builtin__ namespace, as this program only imports standard Python
modules, which shouldn't need any such names.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4746 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/script/scons-time.py

index 6c43e29d1a6c2b2514ea0e23a84d2ada5f4ae766..fa04d3725aa5227db1f345b783ab7a42e37bc6c3 100644 (file)
@@ -49,15 +49,13 @@ try:
     False
 except NameError:
     # Pre-2.2 Python has no False keyword.
-    import __builtin__
-    __builtin__.False = not 1
+    False = not 1
 
 try:
     True
 except NameError:
     # Pre-2.2 Python has no True keyword.
-    import __builtin__
-    __builtin__.True = not 0
+    True = not 0
 
 try:
     sorted
@@ -83,7 +81,6 @@ except NameError:
         if reverse:
             result.reverse()
         return result
-    __builtin__.sorted = sorted
 
 def make_temp_file(**kw):
     try: