duosecurity/duo_client_python

Deprecation warning due to invalid escape sequences

tirkarthi opened this issue · 0 comments

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 'vendor|example|doc|tools|sphinx' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./duo_client/https_wrapper.py:110: DeprecationWarning: invalid escape sequence \.
  host_re = host.replace('.', '\.').replace('*', '[^.]*')