Changeset 278668 in webkit


Ignore:
Timestamp:
Jun 9, 2021, 12:53:39 PM (4 years ago)
Author:
Fujii Hironori
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.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/CISupport/test-result-archive

    r231336 r278668  
    6464    try:
    6565        os.unlink(archiveFile)
    66     except OSError, e:
     66    except OSError as e:
    6767        if e.errno != 2:
    6868            raise
     
    7171        # Ensure that layoutTestResultsDir exists since we cannot archive a directory that does not exist
    7272        os.makedirs(layoutTestResultsDir)
    73     except OSError, e:
     73    except OSError as e:
    7474        if e.errno != 17:
    7575            raise
     
    9393    try:
    9494        shutil.rmtree(layoutTestResultsDir)
    95     except OSError, e:
     95    except OSError as e:
    9696
    9797        # Python in Cygwin throws a mysterious exception with errno of 90
  • trunk/Tools/ChangeLog

    r278656 r278668  
     12021-06-09  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        CISupport/test-result-archive script reports "SyntaxError: invalid syntax" with Python 3
     4        https://bugs.webkit.org/show_bug.cgi?id=226797
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * CISupport/test-result-archive:
     9        (archive_test_results): Replaced the old syntax with 'as' for
     10        'except' clauses.
     11
    1122021-06-08  Yusuke Suzuki  <ysuzuki@apple.com>
    213
Note: See TracChangeset for help on using the changeset viewer.