From 351c62a797afcc20d8eefbe7736b5164ee6b232f Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Fri, 21 May 2010 06:50:36 +0000 Subject: Convert old-style classes in miscellaneous files to new-stylre classes: src/test_strings.py, runtest.py and doc/man/scons.1. --- doc/man/scons.1 | 4 ++-- runtest.py | 4 ++-- src/test_strings.py | 2 +- 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 = [], -- cgit v0.12