diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2014-09-12 13:27:35 +0300 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2014-09-12 13:27:35 +0300 |
| commit | d28d06dd0c265f761e15446f9d92b5bb86e62d1e (patch) | |
| tree | ec00e8a5c627faf587201b78caf906e68ce23906 /checkers/utils.py | |
| parent | 0f35d10d1c629a6bc029bcfb31f903c6c9beafbe (diff) | |
| download | pylint-git-d28d06dd0c265f761e15446f9d92b5bb86e62d1e.tar.gz | |
Shorten a long line.
Diffstat (limited to 'checkers/utils.py')
| -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 55bcdd418..0098a7376 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: |
