Closed Bug 1879120 Opened 4 months ago Closed 4 months ago

Remove all python deprecation warning: invalid escape sequence

Categories

(Firefox Build System :: General, task)

task

Tracking

(firefox125 fixed)

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: sergesanspaille, Assigned: sergesanspaille)

References

Details

Attachments

(2 files)

Attached file literal checker

The script attached can be used to scan existing python code for invalid escape sequence. It's more systematic than the best-effort approach we currently have.

Running

git ls-tree -r HEAD --name-only | while read line; do case $line in ; *.py) ~/sources/litlint/litlint $line ;; esac; done 2>&1 | grep -v -E '^third_party/' | tee litlint.log

And cleaning up the logfile with

grep invalid\ escape litlint.log | grep -v -E '^third_party/' -c

yield 146 entries on current tree

Attachment #9378866 - Attachment description: Bug 1879120 - Remove all python deprecation warning: invalid escape sequence r=ahochheiden → Bug 1879120 - Remove all python deprecation warning: invalid escape sequence r=ahochheiden!
Blocks: 1879558
Attachment #9378866 - Attachment description: Bug 1879120 - Remove all python deprecation warning: invalid escape sequence r=ahochheiden! → Bug 1879120 - Remove all python deprecation warning: invalid escape sequence r=ahochheiden
Attachment #9378866 - Attachment description: Bug 1879120 - Remove all python deprecation warning: invalid escape sequence r=ahochheiden → Bug 1879120 - Remove all python deprecation warning: invalid escape sequence r=ahochheiden!
Attachment #9378866 - Attachment description: Bug 1879120 - Remove all python deprecation warning: invalid escape sequence r=ahochheiden! → Bug 1879120 - Remove all python deprecation warning: invalid escape sequence r=ahochheiden! UPGRADE_NSPR_RELEASE
Pushed by sguelton@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9efb6f330567
Remove all python deprecation warning: invalid escape sequence r=ahochheiden,webdriver-reviewers,perftest-reviewers,afinder UPGRADE_NSPR_RELEASE
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/44782 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
Upstream PR merged by moz-wptsync-bot

Hello. Please do not use UPGRADE_NSPR_RELEASE for allowing individual commits in the nsprpub directory. The barrier to add that tag is intended to let developers know that individual changes need to be added to the separate NSPR project, and that the nsprpub directory should be upgraded as a whole, only. All individual commits in the nsprpub directory are already overwritten the next time a NSPR release is uplifted.

See Also: → 1892189
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: