diff options
author | Steven Knight <knight@baldmt.com> | 2010-05-14 14:27:25 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-05-14 14:27:25 (GMT) |
commit | f9c224d8693cc0e1bcbe6258ce7d30eb598045ef (patch) | |
tree | b103a1fc09f1c85515e783c356f5c80240e74a42 /src/engine | |
parent | 9e778b335c9023197f491ab69bf1462c29f89fdb (diff) | |
download | SCons-f9c224d8693cc0e1bcbe6258ce7d30eb598045ef.zip SCons-f9c224d8693cc0e1bcbe6258ce7d30eb598045ef.tar.gz SCons-f9c224d8693cc0e1bcbe6258ce7d30eb598045ef.tar.bz2 |
Convert old-style classes in Script/Main.py to new-style classes.
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/SCons/Script/Main.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/engine/SCons/Script/Main.py b/src/engine/SCons/Script/Main.py index f78c2ec..a1df683 100644 --- a/src/engine/SCons/Script/Main.py +++ b/src/engine/SCons/Script/Main.py @@ -89,7 +89,7 @@ progress_display = SCons.Util.DisplayEngine() first_command_start = None last_command_end = None -class Progressor: +class Progressor(object): prev = '' count = 0 target_string = '$TARGET' @@ -398,7 +398,7 @@ class QuestionTask(SCons.Taskmaster.AlwaysTask): pass -class TreePrinter: +class TreePrinter(object): def __init__(self, derived=False, prune=False, status=False): self.derived = derived self.prune = prune @@ -440,7 +440,7 @@ this_build_status = 0 # "exit status" of an individual build num_jobs = None delayed_warnings = [] -class FakeOptionParser: +class FakeOptionParser(object): """ A do-nothing option parser, used for the initial OptionsParser variable. @@ -452,7 +452,7 @@ class FakeOptionParser: without blowing up. """ - class FakeOptionValues: + class FakeOptionValues(object): def __getattr__(self, attr): return None values = FakeOptionValues() @@ -474,7 +474,7 @@ def SetOption(name, value): return OptionsParser.values.set_option(name, value) # -class Stats: +class Stats(object): def __init__(self): self.stats = [] self.labels = [] |