1.5.2 portability.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 28 Feb 2004 09:43:03 +0000 (09:43 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 28 Feb 2004 09:43:03 +0000 (09:43 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@911 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/ActionTests.py
src/engine/SCons/Util.py

index 480b299f061155c252d2905d0dc2cdca9e80605c..b7006f9a6afe65f954da6979f56147690c4e4ba0 100644 (file)
@@ -38,7 +38,6 @@ import sys
 import types
 import unittest
 import UserDict
-import UserString
 
 import SCons.Action
 import SCons.Environment
@@ -90,10 +89,9 @@ scons_env = SCons.Environment.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):
index 2fb4e93b500c851c0238abb513173acfa0c3b1a4..d189ecf0716bfdfde3b3725c5d34d4faf7d1e7d8 100644 (file)
@@ -817,7 +817,7 @@ def scons_subst_once(strSubst, env, key):
                         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, ''))
@@ -830,7 +830,7 @@ def scons_subst_once(strSubst, env, key):
             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, '')