summaryrefslogtreecommitdiff
path: root/checkers/classes.py
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
commitc0f09544e532c3f61c07c9ddd57cb9ade3088ae8 (patch)
tree4b61087a37fc218fecc1110131de85e2b5a6a7c1 /checkers/classes.py
parentda5fe0d419cea817af97b04e167e00892089d821 (diff)
downloadpylint-git-c0f09544e532c3f61c07c9ddd57cb9ade3088ae8.tar.gz
Check the return value of slots, it can be None.
Diffstat (limited to 'checkers/classes.py')
-rw-r--r--checkers/classes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/checkers/classes.py b/checkers/classes.py
index eeaf689f4..030bee614 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