summaryrefslogtreecommitdiff
path: root/pylint/checkers
diff options
context:
space:
mode:
authorLaura M?dioni <laura.medioni@logilab.fr>2015-10-27 09:36:29 +0100
committerLaura M?dioni <laura.medioni@logilab.fr>2015-10-27 09:36:29 +0100
commit49b2cf899172af6a58e75547683fa8dc4b5fe6c3 (patch)
tree4fd52288193717f4647fcc49adc8755c9cb618f0 /pylint/checkers
parent3820ddea785c532428642ae2f96d9e8bff244fbf (diff)
downloadpylint-49b2cf899172af6a58e75547683fa8dc4b5fe6c3.tar.gz
improve unneeded-not messages
- warning => convention - "One not too many" => "consider changing.."
Diffstat (limited to 'pylint/checkers')
-rw-r--r--pylint/checkers/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py
index e8a4396..75a4d7f 100644
--- a/pylint/checkers/base.py
+++ b/pylint/checkers/base.py
@@ -1844,12 +1844,12 @@ class ElifChecker(BaseTokenChecker):
self.config.max_nested_blocks))
class NotChecker(_BasicChecker):
- """checks for nots too many in comparison expressions
+ """checks for too many not in comparison expressions
- "not not" should trigger a warning
- "not" followed by a comparison should trigger a warning
"""
- msgs = {'W0126': ('One not too many in "%s", should be "%s"',
+ msgs = {'C0113': ('Consider changing "%s" to "%s"',
'unneeded-not',
'Used when a boolean expression contains an unneeded '
'negation.'),