summaryrefslogtreecommitdiffstats
path: root/src/script/scons-time.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-05-20 14:08:44 (GMT)
committerSteven Knight <knight@baldmt.com>2010-05-20 14:08:44 (GMT)
commit94752bdb2b08712db2025c479c36b87c5bc8770c (patch)
treeca76137ba760de88d318cbed1c05059b9e064ac1 /src/script/scons-time.py
parente53ab342686b8a577f9231d91fe3578cbbd6641a (diff)
downloadSCons-94752bdb2b08712db2025c479c36b87c5bc8770c.zip
SCons-94752bdb2b08712db2025c479c36b87c5bc8770c.tar.gz
SCons-94752bdb2b08712db2025c479c36b87c5bc8770c.tar.bz2
Convert old-style classes in src/script to new-style classes.
Diffstat (limited to 'src/script/scons-time.py')
-rw-r--r--src/script/scons-time.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/scons-time.py b/src/script/scons-time.py
index 37ee593..3b215f9 100644
--- a/src/script/scons-time.py
+++ b/src/script/scons-time.py
@@ -112,7 +112,7 @@ def HACK_for_exec(cmd, *args):
elif len(args) == 1: exec cmd in args[0]
else: exec cmd in args[0], args[1]
-class Plotter:
+class Plotter(object):
def increment_size(self, largest):
"""
Return the size of each horizontal increment line for a specified
@@ -135,7 +135,7 @@ class Plotter:
increment = self.increment_size(largest)
return ((largest + increment - 1) // increment) * increment
-class Line:
+class Line(object):
def __init__(self, points, type, title, label, comment, fmt="%s %s"):
self.points = points
self.type = type
@@ -309,7 +309,7 @@ def tee_to_file(command, log):
-class SConsTimer:
+class SConsTimer(object):
"""
Usage: scons-time SUBCOMMAND [ARGUMENTS]
Type "scons-time help SUBCOMMAND" for help on a specific subcommand.