Page MenuHomePhabricator

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

Authored by thcipriani on Oct 25 2018, 5:29 PM.
Referenced Files
Unknown Object (File)
Mon, Aug 15, 10:05 PM
Unknown Object (File)
Jun 25 2022, 12:22 PM
Subscribers
None

Details

Reviewers
mmodell
Group Reviewers
Release-Engineering-Team
Commits
rMWc9b4abef2e6b: Update patch set 1
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
Lint Not Applicable
Unit
Tests Not Applicable