WojciechMula / pyahocorasick

Python module (C extension and plain python) implementing Aho-Corasick algorithm
BSD 3-Clause "New" or "Revised" License
927 stars 122 forks source link

Deprecation warnings over invalid escape sequences in Python 3.7 #123

Closed tirkarthi closed 4 years ago

tirkarthi commented 4 years ago

Deprecation warning are generated over invalid escape sequences. This can be fixed by using raw strings or escaping the literals again.

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

./unpickle_test.py:190: DeprecationWarning: invalid escape sequence \-
  """
./unpickle_test.py:228: DeprecationWarning: invalid escape sequence \-
  """