pallets-eco / flask-jwt

JWT (JSON Web Tokens) for Flask applications
MIT License
564 stars 178 forks source link

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

Open tirkarthi opened 4 years ago

tirkarthi commented 4 years ago

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())