Make remote workers die if no longer needed; cleanups in executors.
[python_utils.git] / profanity_filter.py
index 31577e0fbf1a4a76486dab066fff764aeb5bbc47..5621cef94489f6b5446a9e786777a8cb93e68be4 100755 (executable)
@@ -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