Skip to content

Commit 8e122aa

Browse files
committed
Fix issue found by latest version of flake8
1 parent a4a658f commit 8e122aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ nose>=1.3.0
22
tox>=2.6.0
33
invoke>=0.15.0
44
mock==2.0.0
5-
flake8==3.5.0
5+
flake8==3.7.4

textblob/blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def correct(self):
575575
:rtype: :class:`BaseBlob <BaseBlob>`
576576
"""
577577
# regex matches: word or punctuation or whitespace
578-
tokens = nltk.tokenize.regexp_tokenize(self.raw, "\w+|[^\w\s]|\s")
578+
tokens = nltk.tokenize.regexp_tokenize(self.raw, r"\w+|[^\w\s]|\s")
579579
corrected = (Word(w).correct() for w in tokens)
580580
ret = ''.join(corrected)
581581
return self.__class__(ret)

0 commit comments

Comments
 (0)