diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2009-11-25 20:11:55 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2009-11-25 20:11:55 +0100 |
commit | 826385f6ad38d3da2c1c71d2294857a78f7f1b2e (patch) | |
tree | 736ac59e14a1f3062bbb4cd6d787836af2029a6c /manager.py | |
parent | 634da8809635ed0cbe8c9442eb631b8d0281778f (diff) | |
download | astroid-826385f6ad38d3da2c1c71d2294857a78f7f1b2e.tar.gz |
_nodes doesn't depend on _nodes_<mode>, so we can use nodes in _nodes_<mode>
Diffstat (limited to 'manager.py')
-rw-r--r-- | manager.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -32,7 +32,8 @@ from logilab.common.modutils import NoSourceFile, is_python_source, \ get_module_files, get_source_file, zipimport from logilab.common.configuration import OptionsProviderMixIn -from logilab.astng import ASTNGBuildingException, _nodes as nodes, infutils +from logilab.astng._exceptions import ASTNGBuildingException +from logilab.astng import infutils def astng_wrapper(func, modname): """wrapper to give to ASTNGManager.project_from_files""" @@ -250,7 +251,7 @@ class ASTNGManager(OptionsProviderMixIn): # take care, on living object __module__ is regularly wrong :( modastng = self.astng_from_module_name(modname) for infered in modastng.igetattr(name, context): - if klass is not obj and isinstance(infered, nodes.Class): + if klass is not obj and infered.is_class_node: infered = infutils.Instance(infered) yield infered |