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)
llvm-svn: 224130

llvm/utils/lit/lit/TestRunner.py

index b331d19..6688029 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.