Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Deprecation warning due to invalid escape sequences #13

Closed
tirkarthi opened this issue May 9, 2020 · 0 comments · Fixed by #14
Closed

Deprecation warning due to invalid escape sequences #13

tirkarthi opened this issue May 9, 2020 · 0 comments · Fixed by #14

Comments

@tirkarthi
Copy link
Contributor

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 {}
./hcluster/distance.py:1648: DeprecationWarning: invalid escape sequence \c
  '(k \choose 2)=n)!') % name)
./hcluster/distance.py:1652: DeprecationWarning: invalid escape sequence \c
  'be a k such that (k \choose 2)=n)!')
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant