Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

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

Open
tirkarthi opened this issue May 7, 2020 · 0 comments
Open

Comments

@tirkarthi
Copy link

Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/

find . -iname '*.py' | grep -Ev 'test.py' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./scripts/release.py:34: DeprecationWarning: invalid escape sequence \s
  match = re.search('^Version\s+(.*)', line.strip())
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant