Index: third_party/scons/scons-local/SCons/Node/FS.py |
=================================================================== |
--- third_party/scons/scons-local/SCons/Node/FS.py (revision 7407) |
+++ third_party/scons/scons-local/SCons/Node/FS.py (working copy) |
@@ -554,7 +554,7 @@ |
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__) |