summaryrefslogtreecommitdiff
path: root/profanity_filter.py
diff options
context:
space:
mode:
authorScott <[email protected]>2022-01-27 12:09:50 -0800
committerScott <[email protected]>2022-01-27 12:09:50 -0800
commitc901f3eb1acf78fd4933d8faeedc517ccafe627e (patch)
tree33212b23fa491baec6942d51a07f3ab8af3b9b4c /profanity_filter.py
parentcba792bceda56c05b3427d6e44a9aeed7111eb8b (diff)
Started using flake8 to lint; removed some of its warnings.
Diffstat (limited to 'profanity_filter.py')
-rwxr-xr-xprofanity_filter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/profanity_filter.py b/profanity_filter.py
index 4723a2d..22de263 100755
--- a/profanity_filter.py
+++ b/profanity_filter.py
@@ -499,7 +499,7 @@ class ProfanityFilter(object):
def tokenize(self, text: str):
for x in nltk.word_tokenize(text):
- for y in re.split('\W+', x):
+ for y in re.split(r'\W+', x):
yield y
def contains_bad_word(self, text: str) -> bool: