summaryrefslogtreecommitdiff
path: root/profanity_filter.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2021-11-13 07:06:31 -0800
committerScott Gasch <[email protected]>2021-11-13 07:06:31 -0800
commit957c962294cde93c4c649ed18dedd16df071878d (patch)
tree04207d711c01b33eb73b61782ed18aaa9d5e363d /profanity_filter.py
parente5da1fa6bab9ea6bf4394facbb29f13cdc3daf9a (diff)
Small bugfixes; also, add a new machine to the remote executor pool.
Diffstat (limited to 'profanity_filter.py')
-rwxr-xr-xprofanity_filter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/profanity_filter.py b/profanity_filter.py
index 31577e0..5621cef 100755
--- a/profanity_filter.py
+++ b/profanity_filter.py
@@ -489,14 +489,14 @@ class ProfanityFilter(object):
for bigram in string_utils.ngrams_presplit(words, 2):
bigram = ' '.join(bigram)
if self.is_bad_word(bigram):
- logger.debug('"{bigram}" is profanity')
+ logger.debug(f'"{bigram}" is profanity')
return True
if len(words) > 2:
for trigram in string_utils.ngrams_presplit(words, 3):
trigram = ' '.join(trigram)
if self.is_bad_word(trigram):
- logger.debug('"{trigram}" is profanity')
+ logger.debug(f'"{trigram}" is profanity')
return True
return False