diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-12-12 15:32:23 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-12-12 15:32:23 +0000 |
commit | 716809b83ce6b93823ed9b473ad5ede54be76005 (patch) | |
tree | 943e129621e1c8f72706b0a44ec19420c9d426c4 /llvm/utils/lit | |
parent | 21a400857ff2e8542c9d693cc4aab0f0d5ca5818 (diff) | |
download | bcm5719-llvm-716809b83ce6b93823ed9b473ad5ede54be76005.tar.gz bcm5719-llvm-716809b83ce6b93823ed9b473ad5ede54be76005.zip |
Now that we require a newer python, use the new exception syntax.
llvm-svn: 224130
Diffstat (limited to 'llvm/utils/lit')
-rw-r--r-- | llvm/utils/lit/lit/TestRunner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py index b331d196c78..6688029347a 100644 --- a/llvm/utils/lit/lit/TestRunner.py +++ b/llvm/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. |