Skip to content

Deprecation warning due to invalid escape sequences in Python 3.7 #409

Description

@tirkarthi

Deprecation warning are raised due to invalid escape sequences. This can be fixed by using raw string or escaping them.

find . -iname '*.py'  | xargs -P 4 -I{} python -Walways -m py_compile {}

./geocoder/uscensus.py:36: DeprecationWarning: invalid escape sequence \d
  match = re.search('^\d+', self.address, re.UNICODE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions