Steven Knight  committed c1d8c9c

Convert old-style classes in miscellaneous files to new-stylre classes:
src/, and doc/man/scons.1.

  • Participants
  • Parent commits 4b9d688
  • Branches default

Comments (0)

Files changed (3)

File doc/man/scons.1

 import sys
-class ProgressCounter:
+class ProgressCounter(object):
     count = 0
     def __call__(self, node, *args, **kw):
         self.count += 100
 instantiation of the class:
-class foo:
+class foo(object):
     def __init__(self, arg):
         self.arg = arg
         command_args = list(map(escape, command_args))
         return os.spawnv(os.P_WAIT, command, command_args)
-class Base:
+class Base(object):
     def __init__(self, path, spe=None):
         self.path = path
         self.abspath = os.path.abspath(path)
 tests = list(map(Test, tests))
-class Unbuffered:
+class Unbuffered(object):
     def __init__(self, file):
         self.file = file
         self.softspace = 0  ## backward compatibility; not supported in Py3k

File src/

 build_local     = build_path('scons-local', 'scons-local-'+scons_version)
 build_src       = build_path('scons-src')
-class Checker:
+class Checker(object):
     def __init__(self, directory,
                  search_list = [],
                  remove_list = [],