datamade / usaddress

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

Fix invalid escape sequence #360

Closed mlissner closed 5 months ago

mlissner commented 6 months ago

This is a one-character PR that fixes the following warning that appears in Python 3.12:

/usr/local/lib/python3.12/site-packages/usaddress/__init__.py:239: SyntaxWarning: invalid escape sequence '\w'
  if bool(re.match('.+[^.\w]', token, flags=re.UNICODE))

We see this error a lot, and others will too when they upgrade. It'd be great to get it fixed. Thank you!

NickCrews commented 5 months ago

duplicate of #274