summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosmin Poieana <cmin@ropython.org>2014-12-06 03:11:38 +0200
committerCosmin Poieana <cmin@ropython.org>2014-12-06 03:11:38 +0200
commit76f9a05d742d03f5a0d8383f8a51ba3faa46d9dd (patch)
tree41464784994da8c6a003fa09543d1ce025ccf878
parent4044ae94dd67276fda6350c1bd2a109556721a37 (diff)
parenta1d9b137a298d929caab9fa8556c110489d2b06d (diff)
downloadpylint-open_mode.tar.gz
-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