Blosc / bcolz

A columnar data container that can be compressed.
http://bcolz.blosc.org
959 stars 149 forks source link

Deprecation warning due to invalid escape sequences. #402

Open tirkarthi opened 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|doc|benchmark|tool' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./bcolz/ctable.py:30: DeprecationWarning: invalid escape sequence \s
  re_str_split = re.compile("^\s+|\s*,\s*|\s+$")
./cpuinfo.py:553: DeprecationWarning: invalid escape sequence \d
  if re.match('^i\d86$|^x86$|^x86_32$|^i86pc$|^ia32$|^ia-32$|^bepc$', raw_arch_string):