diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2014-04-22 10:13:17 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2014-04-22 10:13:17 +0300 |
commit | 4824cc633ad4bd3b6477cb621b38790fb3ff75da (patch) | |
tree | f67e432a1356d9e80c450837f45b3000123f94f5 /scoped_nodes.py | |
parent | c26264de06f038b7fd41f54ecfbaef4694755814 (diff) | |
download | astroid-git-4824cc633ad4bd3b6477cb621b38790fb3ff75da.tar.gz |
Skip the same infered nodes as the base class in _is_metaclass. Closes issue #25.
--HG--
branch : ancestors
Diffstat (limited to 'scoped_nodes.py')
-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 bce2ca16..185944b1 100644 --- a/scoped_nodes.py +++ b/scoped_nodes.py @@ -681,6 +681,8 @@ def _is_metaclass(klass): return False if baseobj is YES: continue + if baseobj is klass: + continue if baseobj._type == 'metaclass': return True if _is_metaclass(baseobj): |