Use the newer python syntax for exceptions
authorJustin Bogner <mail@justinbogner.com>
Sat, 13 Dec 2014 02:49:27 +0000 (02:49 +0000)
committerJustin Bogner <mail@justinbogner.com>
Sat, 13 Dec 2014 02:49:27 +0000 (02:49 +0000)
We've dropped support for python 2.5, so now we can use the forward
compatible "except ... as" syntax.

llvm-svn: 224182

libcxxabi/test/lit.cfg

index 9372fd6..0ba6e28 100644 (file)
@@ -32,7 +32,7 @@ class LibcxxabiTestFormat(lit.formats.FileBasedTest):
         while True:
             try:
                 return self._execute(test, lit_config)
-            except OSError, oe:
+            except OSError as oe:
                 if oe.errno != errno.ETXTBSY:
                     raise
                 time.sleep(0.1)