Skip to content

Deprecation warning over invalid escape sequences in Python 3.8 #2105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tirkarthi opened this issue Jan 31, 2020 · 1 comment · Fixed by #2281
Closed

Deprecation warning over invalid escape sequences in Python 3.8 #2105

tirkarthi opened this issue Jan 31, 2020 · 1 comment · Fixed by #2281

Comments

@tirkarthi
Copy link

These doesn't seem to be part of the library but more related to utility scripts. Using raw strings or escaping them will fix this,

find . -iname '*.py'  | xargs -P 4 -I{} python3.8 -Wall -m py_compile {}

./docs/conf.py:241: DeprecationWarning: invalid escape sequence \D
  'preamble': '\DeclareUnicodeCharacter{00A0}{}',
./tools/mkdoc.py:109: DeprecationWarning: invalid escape sequence \w
  cpp_group = '([\w:]+)'
./tools/mkdoc.py:110: DeprecationWarning: invalid escape sequence \[
  param_group = '([\[\w:\]]+)'
@YannickJadoul
Copy link
Collaborator

Thanks for reporting, @tirkarthi!

#2281 should close this :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants