Skip to content

Fix deprecation warning regarding invalid escape sequences.#218

Open
tirkarthi wants to merge 1 commit intoaboSamoor:masterfrom
tirkarthi:fix-warnings
Open

Fix deprecation warning regarding invalid escape sequences.#218
tirkarthi wants to merge 1 commit intoaboSamoor:masterfrom
tirkarthi:fix-warnings

Conversation

@tirkarthi
Copy link

Fixes below warning by using https://github.com/asottile/pyupgrade/

 find . -iname '*.py' | grep -vE 'example|docs' | xargs -P 4 -I{} python3.8 -Wall -m py_compile {}
./polyglot/text.py:218: DeprecationWarning: invalid escape sequence \w
  tokens = nltk.tokenize.regexp_tokenize(self.raw, "\w*('\w*)+|\w+|[^\w\s]|\s")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant