summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-10-01 22:38:17 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-10-01 22:38:17 (GMT)
commit357a954c3647ab51759f487e4c5dd214dfa86140 (patch)
tree8099e8926a632f542c5e2f64953f11c7078510c7 /src/engine
parent0276cfb016096f44f257d8cc58804c1fec7af54b (diff)
downloadSCons-357a954c3647ab51759f487e4c5dd214dfa86140.zip
SCons-357a954c3647ab51759f487e4c5dd214dfa86140.tar.gz
SCons-357a954c3647ab51759f487e4c5dd214dfa86140.tar.bz2
Fix issue where code in utility routine to_String_for_subst() had code whose result was never properly returned. (Found by: James Rinkevich https://pairlist4.pair.net/pipermail/scons-users/2017-October/006358.html )
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/SCons/Util.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/engine/SCons/Util.py b/src/engine/SCons/Util.py
index f478399..11bcf2e 100644
--- a/src/engine/SCons/Util.py
+++ b/src/engine/SCons/Util.py
@@ -481,10 +481,7 @@ def to_String_for_subst(s,
if isinstance(s, BaseStringTypes):
return s
elif isinstance(s, SequenceTypes):
- l = []
- for e in s:
- l.append(to_String_for_subst(e))
- return ' '.join( s )
+ return ' '.join([to_String_for_subst(e) for e in s])
elif isinstance(s, UserString):
# s.data can only be either a unicode or a regular
# string. Please see the UserString initializer.