summaryrefslogtreecommitdiff
path: root/pylint/checkers/utils.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-11-25 11:26:52 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2015-11-25 11:26:52 +0200
commit31705ac6bc30a70352fa61581f7b0d9007c267d6 (patch)
treee4efd68c53aa8c4070569c236c95c7d0efb2dac8 /pylint/checkers/utils.py
parentf1564436af88f33e2a333926de7d93f8c5890fc7 (diff)
downloadpylint-git-31705ac6bc30a70352fa61581f7b0d9007c267d6.tar.gz
Fix instances of unneeded-not in pylint's codebase.
Diffstat (limited to 'pylint/checkers/utils.py')
-rw-r--r--pylint/checkers/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py
index b85c23781..cfb20d798 100644
--- a/pylint/checkers/utils.py
+++ b/pylint/checkers/utils.py
@@ -382,7 +382,7 @@ def is_attr_protected(attrname):
"""return True if attribute name is protected (start with _ and some other
details), False otherwise.
"""
- return attrname[0] == '_' and not attrname == '_' and not (
+ return attrname[0] == '_' and attrname != '_' and not (
attrname.startswith('__') and attrname.endswith('__'))
def node_frame_class(node):