From 52d55c036292aac56ead80be5c3d4e024701cb0b Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Sat, 13 Dec 2014 02:46:56 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224181 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/lit.common.unit.configured.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unittests') diff --git a/unittests/lit.common.unit.configured.in b/unittests/lit.common.unit.configured.in index ab5c253c7..18adf6482 100644 --- a/unittests/lit.common.unit.configured.in +++ b/unittests/lit.common.unit.configured.in @@ -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)) -- cgit v1.2.3