1. SCons
  2. Core
  3. SCons


Steven Knight  committed aef7e82

Convert old-style classes in bench/* scripts to new-style classes.

  • Participants
  • Parent commits 15ad693
  • Branches default

Comments (0)

Files changed (4)

File bench/dependency-func.py

View file
 #       {'keyword' : 'arguments'},
 #   ),
-class A:
+class A(object):
 Data = [

File bench/env.__setitem__.py

View file
 # These wrap the basic timeit function to make it a little more
 # convenient to do side-by-side tests of code.
-class Timing:
+class Timing(object):
     def __init__(self, name, num, init, statement):
         self.__timer = timeit.Timer(statement, init)
         self.__num   = num
 # After we're done should be the one that shows up at the top of the
 # list as we run our timings.
-class Environment:
+class Environment(object):
     _special_set = {
         'BUILDERS' : None,
         'SCANNERS' : None,

File bench/is_types.py

View file
 #       {'keyword' : 'arguments'},
 #   ),
-class A:
+class A(object):
 Data = [

File bench/timeit.py

View file
     import gc
 except ImportError:
-    class _fake_gc:
+    class _fake_gc(object):
         def isenabled(self):
             return None
         def enable(self):
     """Helper to reindent a multi-line statement."""
     return src.replace("\n", "\n" + " "*indent)
-class Timer:
+class Timer(object):
     """Class for timing execution speed of small code snippets.
     The constructor takes a statement to be timed, an additional