summaryrefslogtreecommitdiffstats
path: root/test/lit.site.cfg.in
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-08-09 00:44:59 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-08-09 00:44:59 +0000
commit5329f78652abcd90bbe9d6a9dd2bbd2a26d24ac6 (patch)
treec965cf9118e87a33925f5b2f9c7d50a9c208849f /test/lit.site.cfg.in
parent708002ede3938256a6223d153a0c040f7a40f5cc (diff)
[tests] Avoid deprecated except syntax.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.site.cfg.in')
-rw-r--r--test/lit.site.cfg.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in
index 23eb8e228c..cff1508fa1 100644
--- a/test/lit.site.cfg.in
+++ b/test/lit.site.cfg.in
@@ -1,3 +1,5 @@
+import sys
+
## Autogenerated by LLVM/Clang configuration.
# Do not edit!
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
@@ -14,7 +16,8 @@ config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
try:
config.llvm_tools_dir = config.llvm_tools_dir % lit.params
config.llvm_libs_dir = config.llvm_libs_dir % lit.params
-except KeyError,e:
+except KeyError:
+ e = sys.exc_info()[1]
key, = e.args
lit.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))