diff options
author | Steven Knight <knight@baldmt.com> | 2010-05-20 05:03:44 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-05-20 05:03:44 (GMT) |
commit | e53ab342686b8a577f9231d91fe3578cbbd6641a (patch) | |
tree | 5d37d9cbc3e7d2165c36cd0917cb6a2515adda1e /test/ToolSurrogate.py | |
parent | 70ee995e9464e6ffae6ec456f6e8f419a29ce6be (diff) | |
download | SCons-e53ab342686b8a577f9231d91fe3578cbbd6641a.zip SCons-e53ab342686b8a577f9231d91fe3578cbbd6641a.tar.gz SCons-e53ab342686b8a577f9231d91fe3578cbbd6641a.tar.bz2 |
Convert old-style classes in test scripts to new-style classes.
Diffstat (limited to 'test/ToolSurrogate.py')
-rw-r--r-- | test/ToolSurrogate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ToolSurrogate.py b/test/ToolSurrogate.py index a343d62..c62128f 100644 --- a/test/ToolSurrogate.py +++ b/test/ToolSurrogate.py @@ -34,7 +34,7 @@ import TestSCons test = TestSCons.TestSCons() test.write('SConstruct', """\ -class Curry: +class Curry(object): def __init__(self, fun, *args, **kwargs): self.fun = fun self.pending = args[:] @@ -55,7 +55,7 @@ def Str(target, source, env, cmd=""): result.append(" ".join(map(str, cmd))) return '\\n'.join(result) -class ToolSurrogate: +class ToolSurrogate(object): def __init__(self, tool, variable, func): self.tool = tool self.variable = variable |