diff options
author | Steven Knight <knight@baldmt.com> | 2010-05-16 19:51:12 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-05-16 19:51:12 (GMT) |
commit | e2c9bab6e3921aa9a96bdbbea4853fd000638f07 (patch) | |
tree | f52a489127bd6b4696c31157f58ed5bd91357b03 /src/engine/SCons | |
parent | 31d33033b32826914dd32fde0e52a7edf8d8720b (diff) | |
download | SCons-e2c9bab6e3921aa9a96bdbbea4853fd000638f07.zip SCons-e2c9bab6e3921aa9a96bdbbea4853fd000638f07.tar.gz SCons-e2c9bab6e3921aa9a96bdbbea4853fd000638f07.tar.bz2 |
Convert old-style classes in Scanner/*.py modules to new-style classes.
Ripple effect to fix monkey-patching in test/Scanner/generated.py.
Diffstat (limited to 'src/engine/SCons')
-rw-r--r-- | src/engine/SCons/Scanner/C.py | 2 | ||||
-rw-r--r-- | src/engine/SCons/Scanner/__init__.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/SCons/Scanner/C.py b/src/engine/SCons/Scanner/C.py index fd8d2f2..3311a09 100644 --- a/src/engine/SCons/Scanner/C.py +++ b/src/engine/SCons/Scanner/C.py @@ -81,7 +81,7 @@ def dictify_CPPDEFINES(env): return {cppdefines : None} return cppdefines -class SConsCPPScannerWrapper: +class SConsCPPScannerWrapper(object): """ The SCons wrapper around a cpp.py scanner. diff --git a/src/engine/SCons/Scanner/__init__.py b/src/engine/SCons/Scanner/__init__.py index dcee1f1..562a361 100644 --- a/src/engine/SCons/Scanner/__init__.py +++ b/src/engine/SCons/Scanner/__init__.py @@ -35,7 +35,7 @@ import SCons.Node.FS import SCons.Util -class _Null: +class _Null(object): pass # This is used instead of None as a default argument value so None can be @@ -61,7 +61,7 @@ def Scanner(function, *args, **kw): -class FindPathDirs: +class FindPathDirs(object): """A class to bind a specific *PATH variable name to a function that will return all of the *path directories.""" def __init__(self, variable): @@ -79,7 +79,7 @@ class FindPathDirs: -class Base: +class Base(object): """ The base class for dependency scanners. This implements straightforward, single-pass scanning of a single file. |