alvinlindstam / grapheme

A python package for grapheme aware string handling
MIT License
108 stars 7 forks source link

Deprecation warning due to invalid escape sequences #11

Closed tirkarthi closed 3 years ago

tirkarthi commented 4 years ago

Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/

find . -iname '*.py' | grep -Ev 'test.py' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./unicode-data/read_property_file.py:11: DeprecationWarning: invalid escape sequence \.
  pattern = re.compile("^([0-9A-F]+)(\.\.([0-9A-F]+))?\s+;\s*(\w*)\s*#")