summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Util.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-24 14:16:04 (GMT)
committerSteven Knight <knight@baldmt.com>2001-09-24 14:16:04 (GMT)
commitcf97a90442df5f8b835bb81aa5139e142baaf446 (patch)
tree38b6a16f2ac93941a08d32dc22c6991a15bc0bc8 /src/engine/SCons/Util.py
parent6d2e37c6e4552fc39dc01fd69d0e4dd8d8edf356 (diff)
downloadSCons-cf97a90442df5f8b835bb81aa5139e142baaf446.zip
SCons-cf97a90442df5f8b835bb81aa5139e142baaf446.tar.gz
SCons-cf97a90442df5f8b835bb81aa5139e142baaf446.tar.bz2
Enhance Builders to take any type of node as input.
Diffstat (limited to 'src/engine/SCons/Util.py')
-rw-r--r--src/engine/SCons/Util.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/engine/SCons/Util.py b/src/engine/SCons/Util.py
index 0167260..0828db3 100644
--- a/src/engine/SCons/Util.py
+++ b/src/engine/SCons/Util.py
@@ -32,9 +32,15 @@ def scons_str2nodes(arg, fs=SCons.Node.FS.default_fs):
for v in narg:
if type(v) is types.StringType:
nodes.append(fs.File(v))
- elif issubclass(v.__class__, SCons.Node.Node):
- nodes.append(v)
+ # Do we enforce the following restriction? Maybe, but it
+ # also restricts what we can do for allowing people to
+ # use the engine with alternate Node implementations...
+ # Perhaps this should be split in two, with the SCons.Node
+ # logic in a wrapper somewhere under SCons.Node, and the
+ # string-parsing logic here...?
+ #elif not issubclass(v.__class__, SCons.Node.Node):
+ # raise TypeError
else:
- raise TypeError
+ nodes.append(v)
return nodes