summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-12-12 15:32:23 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-12-12 15:32:23 +0000
commit716809b83ce6b93823ed9b473ad5ede54be76005 (patch)
tree943e129621e1c8f72706b0a44ec19420c9d426c4 /llvm/utils/lit
parent21a400857ff2e8542c9d693cc4aab0f0d5ca5818 (diff)
downloadbcm5719-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.py2
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.
OpenPOWER on IntegriCloud