From: GregNoel Date: Wed, 22 Apr 2009 21:59:19 +0000 (+0000) Subject: Fix regression failure (shadowed variable) in Python 2.1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a2b2b402163a83452e8dfcbc0d3245a4a627ca89;p=scons.git Fix regression failure (shadowed variable) in Python 2.1 git-svn-id: http://scons.tigris.org/svn/scons/trunk@4121 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Tool/textfile.py b/src/engine/SCons/Tool/textfile.py index 8fa21808..586b182b 100644 --- a/src/engine/SCons/Tool/textfile.py +++ b/src/engine/SCons/Tool/textfile.py @@ -117,17 +117,17 @@ def _action(target, source, env): def _strfunc(target, source, env): return "Creating '%s'" % target[0] +def _convert_list_R(newlist, sources): + for elem in sources: + if is_Sequence(elem): + _convert_list_R(newlist, elem) + elif isinstance(elem, Node): + newlist.append(elem) + else: + newlist.append(Value(elem)) def _convert_list(target, source, env): if len(target) != 1: raise SCons.Errors.UserError("Only one target file allowed") - def _convert_list_R(newlist, sources): - for elem in sources: - if is_List(elem): - _convert_list_R(newlist, elem) - elif isinstance(elem, Node): - newlist.append(elem) - else: - newlist.append(Value(elem)) newlist = [] _convert_list_R(newlist, source) return target, newlist @@ -164,3 +164,9 @@ def generate(env): def exists(env): return 1 + +# Local Variables: +# tab-width:4 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=4 shiftwidth=4: