diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2014-04-15 11:35:18 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2014-04-15 11:35:18 +0300 |
commit | c26264de06f038b7fd41f54ecfbaef4694755814 (patch) | |
tree | 2bc6a50fb2cbaf5473df1e03814b9dcc08c03fb0 /scoped_nodes.py | |
parent | bbb83b5b8356ef7432ed4741e171a483e88a49ee (diff) | |
download | astroid-git-c26264de06f038b7fd41f54ecfbaef4694755814.tar.gz |
Add note in test regarding the .ancestors() fix. Check the _type of a base class before calling _is_metaclass again.
--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 b5956448..bce2ca16 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._type == 'metaclass': + return True if _is_metaclass(baseobj): return True except InferenceError: |