openid/python-openid

Deprecation warning due to invalid escape sequences in Python 3.8

Closed this issue · 2 comments

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 {}

./openid/extensions/draft/pape2.py:30: DeprecationWarning: invalid escape sequence \d
  TIME_VALIDATOR = re.compile('^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$')
./openid/extensions/draft/pape5.py:35: DeprecationWarning: invalid escape sequence \d
  TIME_VALIDATOR = re.compile('^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$')

This project is unmaintained: #62

Use python-openid2 instead:

Thanks @hugovk. Closing.