Title: [278668] trunk/Tools
Revision
278668
Author
[email protected]
Date
2021-06-09 12:53:39 -0700 (Wed, 09 Jun 2021)

Log Message

CISupport/test-result-archive script reports "SyntaxError: invalid syntax" with Python 3
https://bugs.webkit.org/show_bug.cgi?id=226797

Reviewed by Jonathan Bedard.

* CISupport/test-result-archive:
(archive_test_results): Replaced the old syntax with 'as' for
'except' clauses.

Modified Paths

Diff

Modified: trunk/Tools/CISupport/test-result-archive (278667 => 278668)


--- trunk/Tools/CISupport/test-result-archive	2021-06-09 18:33:58 UTC (rev 278667)
+++ trunk/Tools/CISupport/test-result-archive	2021-06-09 19:53:39 UTC (rev 278668)
@@ -63,7 +63,7 @@
 
     try:
         os.unlink(archiveFile)
-    except OSError, e:
+    except OSError as e:
         if e.errno != 2:
             raise
 
@@ -70,7 +70,7 @@
     try:
         # Ensure that layoutTestResultsDir exists since we cannot archive a directory that does not exist
         os.makedirs(layoutTestResultsDir)
-    except OSError, e:
+    except OSError as e:
         if e.errno != 17:
             raise
 
@@ -92,7 +92,7 @@
 
     try:
         shutil.rmtree(layoutTestResultsDir)
-    except OSError, e:
+    except OSError as e:
 
         # Python in Cygwin throws a mysterious exception with errno of 90
         # when removing the layout test result directory after successfully

Modified: trunk/Tools/ChangeLog (278667 => 278668)


--- trunk/Tools/ChangeLog	2021-06-09 18:33:58 UTC (rev 278667)
+++ trunk/Tools/ChangeLog	2021-06-09 19:53:39 UTC (rev 278668)
@@ -1,3 +1,14 @@
+2021-06-09  Fujii Hironori  <[email protected]>
+
+        CISupport/test-result-archive script reports "SyntaxError: invalid syntax" with Python 3
+        https://bugs.webkit.org/show_bug.cgi?id=226797
+
+        Reviewed by Jonathan Bedard.
+
+        * CISupport/test-result-archive:
+        (archive_test_results): Replaced the old syntax with 'as' for
+        'except' clauses.
+
 2021-06-08  Yusuke Suzuki  <[email protected]>
 
         [JSC] Use DataIC for AccessCase
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to