Fix a nested scope issue for older Python versions.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 31 Oct 2008 13:36:01 +0000 (13:36 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 31 Oct 2008 13:36:01 +0000 (13:36 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3754 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/GetBuildFailures/serial.py

index b5d8e44bcc438b381a067287b82afbc772033e30..3c11be810fec7a6a0fd5b78a2a37b53509729457 100644 (file)
@@ -68,11 +68,11 @@ Command('f07', 'f07.in', r'@%(_python_)s mypass.py f07 -   $TARGET $SOURCE')
 
 import SCons.Errors
 def raiseExcAction(exc):
-    def action(env, target, source):
+    def action(env, target, source, exc=exc):
         raise exc
     return action
 def returnExcAction(exc):
-    def action(env, target, source):
+    def action(env, target, source, exc=exc):
         return exc
     return action
 class MyBuildError(SCons.Errors.BuildError):