Sigh. Checkin to fix previous regression test cause another
authorGregNoel <GregNoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 23 Apr 2009 00:05:22 +0000 (00:05 +0000)
committerGregNoel <GregNoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 23 Apr 2009 00:05:22 +0000 (00:05 +0000)
regression failure.  This one should fix it.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4122 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/textfile.py

index 586b182b50e96a90b6575937ca9f12aea9701921..d7ebe774530cecef37ea5c75adae5f8a65904f46 100644 (file)
@@ -50,7 +50,7 @@ import re
 
 from SCons.Node import Node
 from SCons.Node.Python import Value
-from SCons.Util import is_List, is_String
+from SCons.Util import is_String, is_Sequence, is_Dict
 
 def _do_subst(node, subs):
     """
@@ -85,9 +85,9 @@ def _action(target, source, env):
         subs = None    # no substitutions
     else:
         d = env['SUBST_DICT']
-        if SCons.Util.is_Dict(d):
+        if is_Dict(d):
             d = d.items()
-        elif SCons.Util.is_Sequence(d):
+        elif is_Sequence(d):
             pass
         else:
             raise SCons.Errors.UserError('SUBST_DICT must be dict or sequence')
@@ -95,7 +95,7 @@ def _action(target, source, env):
         for (k,v) in d:
             if callable(v):
                 v = v()
-            if SCons.Util.is_String(v):
+            if is_String(v):
                 v = env.subst(v)
             else:
                 v = str(v)