From 4229b95d66ce3757b1ef8691da2ef6e9f329b38d Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 7 Aug 2013 23:09:10 +0000 Subject: [tests] Avoid deprecated except syntax. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187928 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lit.site.cfg.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/lit.site.cfg.in') diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index 1ae99eb..3e7dc5c 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.host_triple = "@LLVM_HOST_TRIPLE@" @@ -25,7 +27,8 @@ config.have_zlib = "@HAVE_LIBZ@" # used when we can't determine the tool dir at configuration time. try: config.llvm_tools_dir = config.llvm_tools_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)) -- cgit v1.1