summaryrefslogtreecommitdiff
path: root/scoped_nodes.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-04-22 10:13:17 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2014-04-22 10:13:17 +0300
commit4824cc633ad4bd3b6477cb621b38790fb3ff75da (patch)
treef67e432a1356d9e80c450837f45b3000123f94f5 /scoped_nodes.py
parentc26264de06f038b7fd41f54ecfbaef4694755814 (diff)
downloadastroid-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.py2
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):