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/typecheck.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/typecheck.py')
-rw-r--r-- | pylint/checkers/typecheck.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index da9daf7..e5f60d6 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -27,7 +27,6 @@ import astroid.context import astroid.arguments from astroid import exceptions from astroid import objects -from astroid import node_classes from astroid import bases import six @@ -56,7 +55,7 @@ def _unflatten(iterable): if (isinstance(elem, collections.Sequence) and not isinstance(elem, six.string_types)): for elem in _unflatten(elem): - yield elem + yield elem elif elem and not index: # We're interested only in the first element. yield elem |