Bug 229959 - Fix new DeprecationWarning in webkitpy
Summary: Fix new DeprecationWarning in webkitpy
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sam Sneddon [:gsnedders]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-06 06:12 PDT by Sam Sneddon [:gsnedders]
Modified: 2021-09-07 02:35 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.59 KB, patch)
2021-09-06 06:15 PDT, Sam Sneddon [:gsnedders]
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Sneddon [:gsnedders] 2021-09-06 06:12:56 PDT
Since https://commits.webkit.org/240757@main, bug 200556, webkitpy has contained a depreciation warning:

  Tools/Scripts/webkitpy/layout_tests/controllers/manager.py:863: DeprecationWarning: invalid escape sequence \g
    truncated_dirname = re.sub(r'^.*(.{47})$', '...\g<1>', dirname if device_test_stats[dirname]['has_tests'] else '{}*'.format(dirname))
Comment 1 Sam Sneddon [:gsnedders] 2021-09-06 06:15:28 PDT
Created attachment 437407 [details]
Patch
Comment 2 EWS 2021-09-07 02:34:16 PDT
Committed r282076 (241376@main): <https://commits.webkit.org/241376@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 437407 [details].
Comment 3 Radar WebKit Bug Importer 2021-09-07 02:35:40 PDT
<rdar://problem/82813274>