diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-11-21 19:42:08 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-11-21 19:42:08 +0200 |
commit | e648e23980d361c8504d41d6b94f9659199ce060 (patch) | |
tree | 128e27f0d35d60ed78c3f291ec30abf4a67f982e /pylint/checkers/base.py | |
parent | 770dd9e70b7235e6268fb4581f1db23ab18c6cd7 (diff) | |
download | pylint-e648e23980d361c8504d41d6b94f9659199ce060.tar.gz |
Cleanup pylint issues
This changeset also brings a couple of changes:
* rrheaders and rcheaders are dropped from html_writer.Table's constructor.
They weren't used at all and it was dead code. This simplified some
if statements.
* _is_attribute_property is used to look for a property assignment
instead on relying on a different implementation.
Diffstat (limited to 'pylint/checkers/base.py')
-rw-r--r-- | pylint/checkers/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py index 001a70c..cc7c786 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -1678,7 +1678,7 @@ class ElifChecker(BaseTokenChecker): @staticmethod def _is_bool_const(node): return (isinstance(node.value, astroid.Const) - and isinstance(node.value.value, bool)) + and isinstance(node.value.value, bool)) def _is_actual_elif(self, node): """Check if the given node is an actual elif |