[compiler-rt] r224181 - Use the newer python syntax for exceptions
Justin Bogner
mail at justinbogner.com
Fri Dec 12 18:46:57 PST 2014
Author: bogner
Date: Fri Dec 12 20:46:56 2014
New Revision: 224181
URL: http://llvm.org/viewvc/llvm-project?rev=224181&view=rev
Log:
Use the newer python syntax for exceptions
We've dropped support for python 2.5, so now we can use the forward
compatible "except ... as" syntax.
Modified:
compiler-rt/trunk/test/lit.common.configured.in
compiler-rt/trunk/unittests/lit.common.unit.configured.in
Modified: compiler-rt/trunk/test/lit.common.configured.in
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.configured.in?rev=224181&r1=224180&r2=224181&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.configured.in (original)
+++ compiler-rt/trunk/test/lit.common.configured.in Fri Dec 12 20:46:56 2014
@@ -30,7 +30,7 @@ set_default("emulator", "@COMPILER_RT_EM
# apply substitution.
try:
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
-except KeyError,e:
+except KeyError as e:
key, = e.args
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key))
Modified: compiler-rt/trunk/unittests/lit.common.unit.configured.in
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/unittests/lit.common.unit.configured.in?rev=224181&r1=224180&r2=224181&view=diff
==============================================================================
--- compiler-rt/trunk/unittests/lit.common.unit.configured.in (original)
+++ compiler-rt/trunk/unittests/lit.common.unit.configured.in Fri Dec 12 20:46:56 2014
@@ -17,7 +17,7 @@ config.host_os = "@HOST_OS@"
try:
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
config.llvm_build_mode = config.llvm_build_mode % lit_config.params
-except KeyError,e:
+except KeyError as e:
key, = e.args
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key))
More information about the llvm-commits
mailing list