summaryrefslogtreecommitdiff
path: root/checkers/utils.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-09-12 13:27:35 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2014-09-12 13:27:35 +0300
commitd28d06dd0c265f761e15446f9d92b5bb86e62d1e (patch)
treeec00e8a5c627faf587201b78caf906e68ce23906 /checkers/utils.py
parent0f35d10d1c629a6bc029bcfb31f903c6c9beafbe (diff)
downloadpylint-git-d28d06dd0c265f761e15446f9d92b5bb86e62d1e.tar.gz
Shorten a long line.
Diffstat (limited to 'checkers/utils.py')
-rw-r--r--checkers/utils.py4
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: