From: stevenknight Date: Thu, 14 Jan 2010 18:36:23 +0000 (+0000) Subject: Python 1.5 fix (nested scopes). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=16e5ce057a17b9967fc237ed773cfb5006bb6e15;p=scons.git Python 1.5 fix (nested scopes). git-svn-id: http://scons.tigris.org/svn/scons/trunk@4618 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/ActionTests.py b/src/engine/SCons/ActionTests.py index 4c2198b6..ef91af4e 100644 --- a/src/engine/SCons/ActionTests.py +++ b/src/engine/SCons/ActionTests.py @@ -1505,7 +1505,9 @@ class CommandGeneratorActionTestCase(unittest.TestCase): def f_global(target, source, env, for_signature): return SCons.Action.Action(GlobalFunc) - def f_local(target, source, env, for_signature): + # TODO(1.5): + #def f_local(target, source, env, for_signature): + def f_local(target, source, env, for_signature, LocalFunc=LocalFunc): return SCons.Action.Action(LocalFunc) env = Environment(XYZ = 'foo') @@ -1521,7 +1523,9 @@ class CommandGeneratorActionTestCase(unittest.TestCase): def f_global(target, source, env, for_signature): return SCons.Action.Action(GlobalFunc, varlist=['XYZ']) - def f_local(target, source, env, for_signature): + # TODO(1.5): + #def f_local(target, source, env, for_signature): + def f_local(target, source, env, for_signature, LocalFunc=LocalFunc): return SCons.Action.Action(LocalFunc, varlist=['XYZ']) matches_foo = map(lambda x: x + "foo", func_matches)