summaryrefslogtreecommitdiffstats
path: root/bench/timeit.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-05-20 21:46:03 (GMT)
committerSteven Knight <knight@baldmt.com>2010-05-20 21:46:03 (GMT)
commitb040d94fad9024d5715d22cdc071384e827696b2 (patch)
tree88d776de309ce5153a38b7b5ce9da7f5f2c5a436 /bench/timeit.py
parent9d48a11283587d8780636fc042c5247d40b531c0 (diff)
downloadSCons-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/timeit.py')
-rw-r--r--bench/timeit.py4
1 files changed, 2 insertions, 2 deletions
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