We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4a658f commit 8e122aaCopy full SHA for 8e122aa
dev-requirements.txt
@@ -2,4 +2,4 @@ nose>=1.3.0
2
tox>=2.6.0
3
invoke>=0.15.0
4
mock==2.0.0
5
-flake8==3.5.0
+flake8==3.7.4
textblob/blob.py
@@ -575,7 +575,7 @@ def correct(self):
575
:rtype: :class:`BaseBlob <BaseBlob>`
576
"""
577
# regex matches: word or punctuation or whitespace
578
- tokens = nltk.tokenize.regexp_tokenize(self.raw, "\w+|[^\w\s]|\s")
+ tokens = nltk.tokenize.regexp_tokenize(self.raw, r"\w+|[^\w\s]|\s")
579
corrected = (Word(w).correct() for w in tokens)
580
ret = ''.join(corrected)
581
return self.__class__(ret)
0 commit comments