aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-12-08 08:33:30 +0000
committerDan Albert <danalbert@google.com>2015-01-08 14:44:28 -0800
commit85f065559a9c86a8a8e061f7fc87cdd9b7afcaa9 (patch)
treec7d9811d29ba5a0d8386d3ee0ed85bb0d6b5d7e4
parent2b3d4166d1db9710251d1b4715bb2c173d3c2f9d (diff)
downloadexternal_llvm-85f065559a9c86a8a8e061f7fc87cdd9b7afcaa9.zip
external_llvm-85f065559a9c86a8a8e061f7fc87cdd9b7afcaa9.tar.gz
external_llvm-85f065559a9c86a8a8e061f7fc87cdd9b7afcaa9.tar.bz2
lit: Don't use python 2.6 features
LLVM supports python 2.5, this fixes a (somewhat) recent regression. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223626 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 726bd4160263609011b3a8168bde045203fd021b)
-rw-r--r--utils/lit/lit/TestRunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py
index 1a2df20..2993f62 100644
--- a/utils/lit/lit/TestRunner.py
+++ b/utils/lit/lit/TestRunner.py
@@ -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.