Skip to content
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

Deprecation warning due to invalid escape sequences in Python 3.8 #343

Open
tirkarthi opened this issue Feb 9, 2020 · 0 comments
Open
Labels
Tech debt Technical debt

Comments

@tirkarthi
Copy link

Deprecation warnings are raised due to invalid escape sequences in Python 3.8 . Below is a log of the warnings raised during compiling all the python files. Using raw strings or escaping them will fix this issue.

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

./test/testall.py:23: DeprecationWarning: invalid escape sequence \.
  ver_bits = re.split("\.|[^\d]", ver_str, 2)[:2]
./lib/markdown2.py:449: DeprecationWarning: invalid escape sequence \s
  "(.*:\s+>\n\s+[\S\s]+?)(?=\n\w+\s*:\s*\w+\n|\Z)", re.MULTILINE)
./lib/markdown2.py:2167: DeprecationWarning: invalid escape sequence \w
  _incomplete_tags_re = re.compile("<(/?\w+[\s/]+?)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tech debt Technical debt
Projects
None yet
Development

No branches or pull requests

2 participants