python-unidiff icon indicating copy to clipboard operation
python-unidiff copied to clipboard

Deprecation warning due to invalid escape sequences in Python 3.8

Open tirkarthi opened this issue 4 years ago • 0 comments

Depreaction warning due to invalid escape sequences in Python 3.7 . https://github.com/asottile/pyupgrade/ can be used to resolve the warnings.

find . -iname '*py' | grep -Ev 'setup|rdf4|tool' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./unidiff/constants.py:61: DeprecationWarning: invalid escape sequence \s
  '(?P<source_filename>[^\t]+?)(?:\t(?P<source_timestamp>[\s0-9:\+-]+))?'
./unidiff/constants.py:62: DeprecationWarning: invalid escape sequence \s
  '(?: and (?P<target_filename>[^\t]+?)(?:\t(?P<target_timestamp>[\s0-9:\+-]+))?)? (differ|has changed)')

tirkarthi avatar Apr 20 '20 15:04 tirkarthi