diff options
author | Michal Nowikowski <godfryd@gmail.com> | 2014-07-29 07:28:36 +0200 |
---|---|---|
committer | Michal Nowikowski <godfryd@gmail.com> | 2014-07-29 07:28:36 +0200 |
commit | d55d8108a32e37d2ed395a22cfbd32e5ea7021a2 (patch) | |
tree | 61cb3fc149e0d4c5ec4fbfbeaa76ac1bd98adea3 | |
parent | 1035bcc1d315d28aee02b9fdaafa39e2d26f6027 (diff) | |
download | pylint-d55d8108a32e37d2ed395a22cfbd32e5ea7021a2.tar.gz |
Review fixes - added comment.
-rw-r--r-- | checkers/spelling.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/checkers/spelling.py b/checkers/spelling.py index dcb7b59..170d409 100644 --- a/checkers/spelling.py +++ b/checkers/spelling.py @@ -92,8 +92,8 @@ class SpellingInCommentsChecker(BaseTokenChecker): # go through words and check them for word in words: - if not word in self.ignore_list and not self.spelling_dict.check(word): - suggestions = self.spelling_dict.suggest(word)[:4] + if word not in self.ignore_list and not self.spelling_dict.check(word): + suggestions = self.spelling_dict.suggest(word)[:4] # return not more than 4 suggestions col = line.index(word) indicator = (" " * col) + ("^" * len(word)) |