diff options
author | Steven Knight <knight@baldmt.com> | 2010-05-20 21:46:03 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-05-20 21:46:03 (GMT) |
commit | b040d94fad9024d5715d22cdc071384e827696b2 (patch) | |
tree | 88d776de309ce5153a38b7b5ce9da7f5f2c5a436 /bench | |
parent | 9d48a11283587d8780636fc042c5247d40b531c0 (diff) | |
download | SCons-b040d94fad9024d5715d22cdc071384e827696b2.zip SCons-b040d94fad9024d5715d22cdc071384e827696b2.tar.gz SCons-b040d94fad9024d5715d22cdc071384e827696b2.tar.bz2 |
Convert old-style classes in bench/* scripts to new-style classes.
Diffstat (limited to 'bench')
-rw-r--r-- | bench/dependency-func.py | 2 | ||||
-rw-r--r-- | bench/env.__setitem__.py | 4 | ||||
-rw-r--r-- | bench/is_types.py | 2 | ||||
-rw-r--r-- | bench/timeit.py | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/bench/dependency-func.py b/bench/dependency-func.py index 7313cf9..09c6162 100644 --- a/bench/dependency-func.py +++ b/bench/dependency-func.py @@ -71,7 +71,7 @@ def Func02(t): # {'keyword' : 'arguments'}, # ), -class A: +class A(object): pass Data = [ diff --git a/bench/env.__setitem__.py b/bench/env.__setitem__.py index 54ac92f..b17b59e 100644 --- a/bench/env.__setitem__.py +++ b/bench/env.__setitem__.py @@ -16,7 +16,7 @@ import timeit # 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 @@ -93,7 +93,7 @@ global_valid_var = re.compile(r'[_a-zA-Z]\w*$') # 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, diff --git a/bench/is_types.py b/bench/is_types.py index b47c381..69c029f 100644 --- a/bench/is_types.py +++ b/bench/is_types.py @@ -244,7 +244,7 @@ def Func12(obj): # {'keyword' : 'arguments'}, # ), -class A: +class A(object): pass Data = [ diff --git a/bench/timeit.py b/bench/timeit.py index ed94361..c5fef12 100644 --- a/bench/timeit.py +++ b/bench/timeit.py @@ -51,7 +51,7 @@ from __future__ import division try: import gc except ImportError: - class _fake_gc: + class _fake_gc(object): def isenabled(self): return None def enable(self): @@ -97,7 +97,7 @@ def reindent(src, indent): """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 |