diff options
| author | Steven Knight <knight@baldmt.com> | 2008-12-30 23:15:49 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2008-12-30 23:15:49 (GMT) |
| commit | cc05c121706797a7708d135ce20ff40039111fa7 (patch) | |
| tree | d31e1021d742e862be3124f1fdafc7249822f61c /src/engine/SCons/Node/FS.py | |
| parent | 312f88d4f0daa0aa8ccdad202c76b7e297b605cd (diff) | |
| download | SCons-cc05c121706797a7708d135ce20ff40039111fa7.zip SCons-cc05c121706797a7708d135ce20ff40039111fa7.tar.gz SCons-cc05c121706797a7708d135ce20ff40039111fa7.tar.bz2 | |
Allow subclassing of File and Dir nodes by having the must_be_same()
method check for isinstance(), not an exact class match.
Diffstat (limited to 'src/engine/SCons/Node/FS.py')
| -rw-r--r-- | src/engine/SCons/Node/FS.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py index 4e89e8d..f8911b0 100644 --- a/src/engine/SCons/Node/FS.py +++ b/src/engine/SCons/Node/FS.py @@ -582,7 +582,7 @@ class Base(SCons.Node.Node): This node, which already existed, is being looked up as the specified klass. Raise an exception if it isn't. """ - if self.__class__ is klass or klass is Entry: + if isinstance(self, klass) or klass is Entry: return raise TypeError, "Tried to lookup %s '%s' as a %s." %\ (self.__class__.__name__, self.path, klass.__name__) |
