]> granicus.if.org Git - llvm/commitdiff
Now that we require a newer python, use the new exception syntax.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 12 Dec 2014 15:32:23 +0000 (15:32 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 12 Dec 2014 15:32:23 +0000 (15:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224130 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestRunner.py

index b331d196c7837bae71ad423889c9e4a70fde4f28..6688029347a8359bad1e520569b979ce2e54eb24 100644 (file)
@@ -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.