diff options
author | Steven Knight <knight@baldmt.com> | 2010-05-15 14:24:28 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-05-15 14:24:28 (GMT) |
commit | c0f96807f95bb499b839fac20917adf23718cb01 (patch) | |
tree | 94af35addab045f305a9ca93425ea6683e360696 | |
parent | 90c7ba4bd6c3d49a7b4d34895c9a8dbce7c20deb (diff) | |
download | SCons-c0f96807f95bb499b839fac20917adf23718cb01.zip SCons-c0f96807f95bb499b839fac20917adf23718cb01.tar.gz SCons-c0f96807f95bb499b839fac20917adf23718cb01.tar.bz2 |
Convert old-style classes in Variables/{__init__,PathVariable}.py to new-style classes.
-rw-r--r-- | src/engine/SCons/Variables/PathVariable.py | 2 | ||||
-rw-r--r-- | src/engine/SCons/Variables/__init__.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/SCons/Variables/PathVariable.py b/src/engine/SCons/Variables/PathVariable.py index 4052531..951fc75 100644 --- a/src/engine/SCons/Variables/PathVariable.py +++ b/src/engine/SCons/Variables/PathVariable.py @@ -77,7 +77,7 @@ import os.path import SCons.Errors -class _PathVariableClass: +class _PathVariableClass(object): def PathAccept(self, key, val, env): """Accepts any path, no checking done.""" diff --git a/src/engine/SCons/Variables/__init__.py b/src/engine/SCons/Variables/__init__.py index 41f5dd1..ede7480 100644 --- a/src/engine/SCons/Variables/__init__.py +++ b/src/engine/SCons/Variables/__init__.py @@ -43,7 +43,7 @@ from PackageVariable import PackageVariable # naja from PathVariable import PathVariable # okay -class Variables: +class Variables(object): instance=None """ @@ -74,7 +74,7 @@ class Variables: Variables.instance=self def _do_add(self, key, help="", default=None, validator=None, converter=None): - class Variable: + class Variable(object): pass option = Variable() |