summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2014-12-05 21:49:17 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2014-12-05 21:49:17 +0200
commita1d9b137a298d929caab9fa8556c110489d2b06d (patch)
tree2d0ff2b0c33f0737ad71545e4c50f793913b0799
parentef38bc078a3732958012c192560a3fafa633db85 (diff)
downloadpylint-a1d9b137a298d929caab9fa8556c110489d2b06d.tar.gz
Check the return value of slots, it can be None.
-rw-r--r--checkers/classes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/checkers/classes.py b/checkers/classes.py
index eeaf689..030bee6 100644
--- a/checkers/classes.py
+++ b/checkers/classes.py
@@ -585,6 +585,8 @@ a metaclass class method.'}
return
slots = klass.slots()
+ if slots is None:
+ return
# If any ancestor doesn't use slots, the slots
# defined for this class are superfluous.
if any('__slots__' not in ancestor.locals and