Fix "invalid escape sequence '\' (W605)"
ClosedPublic

Authored by thcipriani on Oct 25 2018, 5:29 PM.

Details

Reviewers
mmodell
Group Reviewers
Release-Engineering-Team
Commits
rMSCAd7b8bfa2fa5e: Fix "invalid escape sequence '\' (W605)"
Patch without arc
git checkout -b D1121 && curl -L https://phabricator.wikimedia.org/D1121?download=true | git apply
Summary

In python 3.6, using the \ char in a string that is not part of a
valid escape sequence will generate a Deprecation warning. For us it
means that flake8 is upset.

We use this in regex and in ascii art.

Diff Detail

Repository
rMSCA Scap
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
thcipriani created this revision.Oct 25 2018, 5:29 PM
Restricted Application added a reviewer: Release-Engineering-Team. · View Herald TranscriptOct 25 2018, 5:29 PM
Restricted Application added a project: Release-Engineering-Team. · View Herald Transcript
thcipriani requested review of this revision.Oct 25 2018, 5:30 PM
mmodell accepted this revision.Oct 25 2018, 6:27 PM
This revision is now accepted and ready to land.Oct 25 2018, 6:27 PM
This revision was automatically updated to reflect the committed changes.