diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-12-12 15:32:23 +0000 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-01-08 14:44:29 -0800 |
commit | 00b724930ddd36b279b20252ba7bae51d0a67785 (patch) | |
tree | eccd856cf9dee9b45117b34bffda706f5620e1b6 /utils/lit | |
parent | b3f52a221c984c43ace0d08d5a8222e2ddf6b3bc (diff) | |
download | external_llvm-00b724930ddd36b279b20252ba7bae51d0a67785.zip external_llvm-00b724930ddd36b279b20252ba7bae51d0a67785.tar.gz external_llvm-00b724930ddd36b279b20252ba7bae51d0a67785.tar.bz2 |
Now that we require a newer python, use the new exception syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224130 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit fe6c7ee0f0e11a368d8c98db7e75d26c1c2b32e6)
Diffstat (limited to 'utils/lit')
-rw-r--r-- | utils/lit/lit/TestRunner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py index b331d19..6688029 100644 --- a/utils/lit/lit/TestRunner.py +++ b/utils/lit/lit/TestRunner.py @@ -153,7 +153,7 @@ def executeShCmd(cmd, cfg, cwd, results): stderr = stderr, env = cfg.environment, close_fds = kUseCloseFDs)) - except OSError, e: + except OSError as e: raise InternalShellError(j, 'Could not create process due to {}'.format(e)) # Immediately close stdin for any process taking stdin from us. |