OSDN Git Service

Now that we require a newer python, use the new exception syntax.
[android-x86/external-llvm.git] / 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.