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

Depreaction warning due to invalid escape sequences in Python 3.7

Open tirkarthi opened this issue 5 years ago • 1 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' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./cpuinfo.py:553: DeprecationWarning: invalid escape sequence \d
  if re.match('^i\d86$|^x86$|^x86_32$|^i86pc$|^ia32$|^ia-32$|^bepc$', raw_arch_string):

tirkarthi avatar Apr 19 '20 13:04 tirkarthi

Note that cpuinfo.py is a vendored file, as far as I know the original file is maintained in project https://github.com/workhorsy/py-cpuinfo. You might want to open an issue directly in that project instead.

DimitriPapadopoulos avatar Jul 13 '22 17:07 DimitriPapadopoulos

cpuinfo.py is not vendored anymore. Closing.

FrancescAlted avatar Dec 07 '22 17:12 FrancescAlted

Additionally, I believe the invalid escapes have been fixed in https://github.com/workhorsy/py-cpuinfo/commit/dc477fcd4d70386f67cb711e371d2d79cdc6c27c.

DimitriPapadopoulos avatar Dec 07 '22 17:12 DimitriPapadopoulos