Steven Knight  committed 68dd95d

Convert old-style classes in src/script to new-style classes.

  • Participants
  • Parent commits 2af3d35

Comments (0)

Files changed (3)

File src/script/

     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
         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
-class SConsTimer:
+class SConsTimer(object):
     Usage: scons-time SUBCOMMAND [ARGUMENTS]
     Type "scons-time help SUBCOMMAND" for help on a specific subcommand.

File src/script/

         fp, pathname, description = imp.find_module(mname)
     return imp.load_module(mname, fp, pathname, description)
-class Flagger:
+class Flagger(object):
     default_value = 1
     def __setitem__(self, item, value):
         self.__dict__[item] = value
                 print nodeinfo_string(name, entry.ninfo)
             printfield(name, entry.binfo)
-class Do_SConsignDB:
+class Do_SConsignDB(object):
     def __init__(self, dbm_name, dbm):
         self.dbm_name = dbm_name
         self.dbm = dbm

File src/

 _install_scripts = distutils.command.install_scripts.install_scripts
 _build_scripts = distutils.command.build_scripts.build_scripts
-class _options:
+class _options(object):
 Options = _options()