import types
import unittest
import UserDict
-import UserString
import SCons.Action
import SCons.Environment
# so it doesn't clutter the output.
sys.stdout = StringIO.StringIO()
-class CmdStringHolder(UserString.UserString):
- # Copped from SCons.Util
+class CmdStringHolder:
def __init__(self, cmd, literal=None):
- UserString.UserString.__init__(self, cmd)
+ self.data = str(cmd)
self.literal = literal
def is_literal(self):
if a in matchlist:
a = env[key]
if is_List(a):
- r.extend(string.join(map(str, a)))
+ r.append(string.join(map(str, a)))
else:
r.append(str(a))
result.append(string.join(r, ''))
if a in matchlist:
a = env[key]
if is_List(a):
- result.extend(string.join(map(str, a)))
+ result.append(string.join(map(str, a)))
else:
result.append(str(a))
return string.join(result, '')