[llvm] r223626 - lit: Don't use python 2.6 features
David Majnemer
david.majnemer at gmail.com
Mon Dec 8 00:33:31 PST 2014
Author: majnemer
Date: Mon Dec 8 02:33:30 2014
New Revision: 223626
URL: http://llvm.org/viewvc/llvm-project?rev=223626&view=rev
Log:
lit: Don't use python 2.6 features
LLVM supports python 2.5, this fixes a (somewhat) recent regression.
Modified:
llvm/trunk/utils/lit/lit/TestRunner.py
Modified: llvm/trunk/utils/lit/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestRunner.py?rev=223626&r1=223625&r2=223626&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Mon Dec 8 02:33:30 2014
@@ -152,7 +152,7 @@ def executeShCmd(cmd, cfg, cwd, results)
stderr = stderr,
env = cfg.environment,
close_fds = kUseCloseFDs))
- except OSError as e:
+ except OSError, e:
raise InternalShellError(j, 'Could not create process due to {}'.format(e))
# Immediately close stdin for any process taking stdin from us.
More information about the llvm-commits
mailing list