surrounded by curly braces to separate the name from
+ # Make the common case (i.e. nothing to do) fast:
+ if string.find(strSubst, "$") == -1 \
+ and (remove is None or remove.search(strSubst) is None):
cmd_list = scons_subst_list(strSubst, globals, locals, remove)
return string.join(map(string.join, cmd_list), '\n')
return type(e) is types.ListType or isinstance(e, UserList.UserList)
+ """This function converts a string or list into a list of strings or Nodes.
+ It follows the rules outlined in the SCons design document by accepting
+ any of the following inputs:
+ - A single string containing names separated by spaces. These will be
+ split apart at the spaces.
+ - A single None instance
+ - A list containing either strings or Node instances. Any strings
+ in the list are not split at spaces.
+ In all cases, the function returns a list of Nodes and strings."""
+ return string.split(arg)
if hasattr(types, 'UnicodeType'):
return type(e) is types.StringType \