summaryrefslogtreecommitdiff
path: root/pylint/checkers/base.py
diff options
context:
space:
mode:
authorLaura M?dioni <laura.medioni@logilab.fr>2015-11-24 11:46:44 +0100
committerLaura M?dioni <laura.medioni@logilab.fr>2015-11-24 11:46:44 +0100
commit886c03cf2ac8758519dfd50c12b486d76d231d0d (patch)
treef191cb95f308c84280eeeae18d7f0c8e9789eea3 /pylint/checkers/base.py
parentcb68a81eee457947b9750013c90bcfeb4eb22bcf (diff)
downloadpylint-886c03cf2ac8758519dfd50c12b486d76d231d0d.tar.gz
Add is to the checked operators
Diffstat (limited to 'pylint/checkers/base.py')
-rw-r--r--pylint/checkers/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py
index aba648c..bccc967 100644
--- a/pylint/checkers/base.py
+++ b/pylint/checkers/base.py
@@ -1856,7 +1856,7 @@ class NotChecker(_BasicChecker):
}
reverse_op = {'<': '>=', '<=': '>', '>': '<=', '>=': '<', '==': '!=',
- '!=': '==', 'in': 'not in'}
+ '!=': '==', 'in': 'not in', 'is': 'is not'}
@check_messages('unneeded-not')
def visit_unaryop(self, node):