From 5ae4246aa666e488b49370c80fcf3d66f5b8ee25 Mon Sep 17 00:00:00 2001 From: bobloy Date: Sat, 12 May 2018 18:26:03 -0400 Subject: [PATCH] pep8 --- chatter/chatterbot/trainers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatter/chatterbot/trainers.py b/chatter/chatterbot/trainers.py index 42ccd47..042019e 100644 --- a/chatter/chatterbot/trainers.py +++ b/chatter/chatterbot/trainers.py @@ -225,7 +225,7 @@ class TwitterTrainer(Trainer): for word in tweet_words: # If the word contains only letters with a length from 4 to 9 - if word.isalpha() and len(word) > 3 and len(word) <= 9: + if word.isalpha() and 3 < len(word) <= 9: words.add(word) return words