diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-12-13 02:46:56 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-12-13 02:46:56 +0000 |
| commit | efa6197ab76e151a3ec253dcd9dbd716f60a92c8 (patch) | |
| tree | db3c571ea4918b0f94d0ff496dcf4b2c77c2e937 /compiler-rt | |
| parent | 8bcc05d5f4b4ed042255852ace511a0e071a5541 (diff) | |
| download | bcm5719-llvm-efa6197ab76e151a3ec253dcd9dbd716f60a92c8.tar.gz bcm5719-llvm-efa6197ab76e151a3ec253dcd9dbd716f60a92c8.zip | |
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.
llvm-svn: 224181
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/test/lit.common.configured.in | 2 | ||||
| -rw-r--r-- | compiler-rt/unittests/lit.common.unit.configured.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/lit.common.configured.in b/compiler-rt/test/lit.common.configured.in index beecaa25886..ceab67d4ad0 100644 --- a/compiler-rt/test/lit.common.configured.in +++ b/compiler-rt/test/lit.common.configured.in @@ -30,7 +30,7 @@ set_default("emulator", "@COMPILER_RT_EMULATOR@") # 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)) diff --git a/compiler-rt/unittests/lit.common.unit.configured.in b/compiler-rt/unittests/lit.common.unit.configured.in index ab5c253c7d1..18adf6482a5 100644 --- a/compiler-rt/unittests/lit.common.unit.configured.in +++ b/compiler-rt/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)) |

