diff options
author | cpopa <devnull@localhost> | 2014-04-24 01:45:51 +0300 |
---|---|---|
committer | cpopa <devnull@localhost> | 2014-04-24 01:45:51 +0300 |
commit | c784dbdb8a494dbd446d842be1ada9ba112115f5 (patch) | |
tree | 87fe590cd951cdaf6314e78afc42393929064c86 | |
parent | 0a517063dc30df161a595b51befc28feea3639d2 (diff) | |
download | astroid-c784dbdb8a494dbd446d842be1ada9ba112115f5.tar.gz |
Skip non-class bases.
-rw-r--r-- | scoped_nodes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scoped_nodes.py b/scoped_nodes.py index 185944b..0e1f367 100644 --- a/scoped_nodes.py +++ b/scoped_nodes.py @@ -683,6 +683,8 @@ def _is_metaclass(klass): continue if baseobj is klass: continue + if not isinstance(baseobj, Class): + continue if baseobj._type == 'metaclass': return True if _is_metaclass(baseobj): |