You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"invalid escape sequence" DeprecationWarnings with Python 3.6 #646
It looks like it's mostly \s in (non-raw) docstrings and \- in regexes. For some odd reason I can't reproduce this when running pylint's testsuite with pytest-warnings though, so I don't know if there's more.
I think those strings should be r'...' raw strings to avoid exactly such warnings
Reacted by Regényi Balázs, aph61, Imran Khan, Jose S, Anastasios Zouzias, StevenKoppens, Idan Melamed, Iago-lito, Alessandro Bresciani, Mike Jarvis and 46 more
Reacted by Felipe S. S. Schneider, kal and Cristian Bercu
Activity
ThiefMaster commentedon Jan 8, 2017
I think those strings should be
r'...'raw strings to avoid exactly such warningsThiefMaster commentedon Jan 8, 2017
FWIW, I don't think any
\is needed for the-- outside[]the dash has no special meaning.Fixed some string literal warnings. Fixes #646
MartinThoma commentedon Nov 19, 2018
pip3 install jinja --user --upgradesolved it for me.abrahamrhoffman commentedon Oct 25, 2019
raw string conversion ftw! I came here looking for a solution to my linting problems :) thanks for the tip!
not
Specify `sep` as raw string