diff options
author | Laura M?dioni <laura.medioni@logilab.fr> | 2015-10-27 09:36:29 +0100 |
---|---|---|
committer | Laura M?dioni <laura.medioni@logilab.fr> | 2015-10-27 09:36:29 +0100 |
commit | 49b2cf899172af6a58e75547683fa8dc4b5fe6c3 (patch) | |
tree | 4fd52288193717f4647fcc49adc8755c9cb618f0 /pylint/checkers | |
parent | 3820ddea785c532428642ae2f96d9e8bff244fbf (diff) | |
download | pylint-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.py | 4 |
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.'), |