summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2008-12-30 23:15:49 (GMT)
committerSteven Knight <knight@baldmt.com>2008-12-30 23:15:49 (GMT)
commitcc05c121706797a7708d135ce20ff40039111fa7 (patch)
treed31e1021d742e862be3124f1fdafc7249822f61c /src/engine/SCons/Node/FS.py
parent312f88d4f0daa0aa8ccdad202c76b7e297b605cd (diff)
downloadSCons-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.py2
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__)