summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-05-21 06:50:36 (GMT)
committerSteven Knight <knight@baldmt.com>2010-05-21 06:50:36 (GMT)
commit351c62a797afcc20d8eefbe7736b5164ee6b232f (patch)
treea0e319de586257a3c90668e845b7e21fedbd6fee
parent935e698566833e2c50898f39f565414404c68cbd (diff)
downloadSCons-351c62a797afcc20d8eefbe7736b5164ee6b232f.zip
SCons-351c62a797afcc20d8eefbe7736b5164ee6b232f.tar.gz
SCons-351c62a797afcc20d8eefbe7736b5164ee6b232f.tar.bz2
Convert old-style classes in miscellaneous files to new-stylre classes:
src/test_strings.py, runtest.py and doc/man/scons.1.
-rw-r--r--doc/man/scons.14
-rw-r--r--runtest.py4
-rw-r--r--src/test_strings.py2
3 files changed, 5 insertions, 5 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1
index 9fb0df2..fd2baa3 100644
--- a/doc/man/scons.1
+++ b/doc/man/scons.1
@@ -4834,7 +4834,7 @@ will overwrite itself on a display:
.ES
import sys
-class ProgressCounter:
+class ProgressCounter(object):
count = 0
def __call__(self, node, *args, **kw):
self.count += 100
@@ -9249,7 +9249,7 @@ be associated with the
instantiation of the class:
.ES
-class foo:
+class foo(object):
def __init__(self, arg):
self.arg = arg
diff --git a/runtest.py b/runtest.py
index eb2ec5e..9246a4b 100644
--- a/runtest.py
+++ b/runtest.py
@@ -362,7 +362,7 @@ else:
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)
@@ -747,7 +747,7 @@ if qmtest:
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
diff --git a/src/test_strings.py b/src/test_strings.py
index c6b1179..012efc9 100644
--- a/src/test_strings.py
+++ b/src/test_strings.py
@@ -52,7 +52,7 @@ build_scons = build_path('scons')
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 = [],