datamade / usaddress

:us: a python library for parsing unstructured United States address strings into address components
https://parserator.datamade.us/usaddress
MIT License
1.51k stars 303 forks source link

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

Open tirkarthi opened 4 years ago

tirkarthi commented 4 years ago

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

./usaddress/__init__.py:247: DeprecationWarning: invalid escape sequence \w
  if bool(re.match('.+[^.\w]', token, flags=re.UNICODE))