jonhadfield / python-hosts

a hosts file manager library written in python
MIT License
125 stars 33 forks source link

Deprecation warning due to invalid escape sequences #28

Closed tirkarthi closed 4 years ago

tirkarthi commented 4 years ago

Deprecation warning due to invalid escape sequences. Using raw strings or escaping them again helps in resolving this. Check https://github.com/asottile/pyupgrade/ for automatic fix of this.

find . -iname '*.py' | grep -Ev 'rdf4|tool|doc' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./python_hosts/utils.py:46: DeprecationWarning: invalid escape sequence \d
  allowed = re.compile('(?!-)[A-Z\d-]{1,63}(?<!-)$', re.IGNORECASE)
./python_hosts/hosts.py:2: DeprecationWarning: invalid escape sequence \w
  """ This module contains classes:
github-actions[bot] commented 4 years ago

Stale issue message