Skip to content

Commit

Permalink
[tests] Avoid deprecated except syntax.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188041 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ddunbar committed Aug 9, 2013
1 parent 708002e commit 5329f78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/Unit/lit.site.cfg.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

## Autogenerated by LLVM/Clang configuration.
# Do not edit!
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
Expand All @@ -18,7 +20,8 @@ try:
config.llvm_tools_dir = config.llvm_tools_dir % lit.params
config.llvm_libs_dir = config.llvm_libs_dir % lit.params
config.llvm_build_mode = config.llvm_build_mode % 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))

Expand Down
5 changes: 4 additions & 1 deletion test/lit.site.cfg.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

## Autogenerated by LLVM/Clang configuration.
# Do not edit!
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
Expand All @@ -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))

Expand Down

0 comments on commit 5329f78

Please sign in to comment.