diff options
author | Steven Knight <knight@baldmt.com> | 2010-05-15 03:10:45 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-05-15 03:10:45 (GMT) |
commit | a9c65af2a9bff1c29ea6131f87e67087cdbabc35 (patch) | |
tree | 3801709b286f3622963f178e4ebb138734a63017 /src | |
parent | 6e666a182db9d60ec43369978398592fe86c3c45 (diff) | |
download | SCons-a9c65af2a9bff1c29ea6131f87e67087cdbabc35.zip SCons-a9c65af2a9bff1c29ea6131f87e67087cdbabc35.tar.gz SCons-a9c65af2a9bff1c29ea6131f87e67087cdbabc35.tar.bz2 |
Convert old-style classes in tool/JavaCommon.py to new-style classes.
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/SCons/Tool/JavaCommon.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/SCons/Tool/JavaCommon.py b/src/engine/SCons/Tool/JavaCommon.py index f2f7190..c64d254 100644 --- a/src/engine/SCons/Tool/JavaCommon.py +++ b/src/engine/SCons/Tool/JavaCommon.py @@ -59,7 +59,7 @@ if java_parsing: r'\d*\.\d*|[A-Za-z_][\w\$\.]*|<[A-Za-z_]\w+>|' + r'/\*|\*/|\[\])') - class OuterState: + class OuterState(object): """The initial state for parsing a Java file for classes, interfaces, and anonymous inner classes.""" def __init__(self, version=default_java_version): @@ -186,7 +186,7 @@ if java_parsing: def setPackage(self, package): self.package = package - class AnonClassState: + class AnonClassState(object): """A state that looks for anonymous inner classes.""" def __init__(self, old_state): # outer_state is always an instance of OuterState @@ -221,7 +221,7 @@ if java_parsing: self.outer_state.addAnonClass() return self.old_state.parseToken(token) - class SkipState: + class SkipState(object): """A state that will skip a specified number of tokens before reverting to the previous state.""" def __init__(self, tokens_to_skip, old_state): @@ -233,7 +233,7 @@ if java_parsing: return self.old_state return self - class ClassState: + class ClassState(object): """A state we go into when we hit a class or interface keyword.""" def __init__(self, outer_state): # outer_state is always an instance of OuterState @@ -260,7 +260,7 @@ if java_parsing: self.outer_state.anonStacksStack.append([0]) return self.outer_state - class IgnoreState: + class IgnoreState(object): """A state that will ignore all tokens until it gets to a specified token.""" def __init__(self, ignore_until, old_state): @@ -271,7 +271,7 @@ if java_parsing: return self.old_state return self - class PackageState: + class PackageState(object): """The state we enter when we encounter the package keyword. We assume the next token will be the package name.""" def __init__(self, outer_state): |