[llvm] r224130 - Now that we require a newer python, use the new exception syntax.

Rafael Espindola rafael.espindola at gmail.com
Fri Dec 12 07:32:23 PST 2014


Author: rafael
Date: Fri Dec 12 09:32:23 2014
New Revision: 224130

URL: http://llvm.org/viewvc/llvm-project?rev=224130&view=rev
Log:
Now that we require a newer python, use the new exception syntax.

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=224130&r1=224129&r2=224130&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Fri Dec 12 09:32:23 2014
@@ -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.





More information about the llvm-commits mailing list