diff options
author | cpopa <devnull@localhost> | 2014-09-12 13:27:35 +0300 |
---|---|---|
committer | cpopa <devnull@localhost> | 2014-09-12 13:27:35 +0300 |
commit | 8e4c232bd6e71a7192a869f659c489f4f5eda4dd (patch) | |
tree | 57e34237f74aa3c4d5c4430795296678a0752235 | |
parent | 56f660a2e80e36fb997ac1de5ff1b720e1ddab27 (diff) | |
download | pylint-8e4c232bd6e71a7192a869f659c489f4f5eda4dd.tar.gz |
Shorten a long line.
-rw-r--r-- | checkers/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/checkers/utils.py b/checkers/utils.py index 55bcdd4..0098a73 100644 --- a/checkers/utils.py +++ b/checkers/utils.py @@ -473,7 +473,9 @@ def has_known_bases(klass): for base in klass.bases: result = next(base.infer()) # TODO: check for A->B->A->B pattern in class structure too? - if not isinstance(result, astroid.Class) or result is klass or not has_known_bases(result): + if (not isinstance(result, astroid.Class) or + result is klass or + not has_known_bases(result)): klass._all_bases_known = False return False except astroid.InferenceError: |