summaryrefslogtreecommitdiff
path: root/manager.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2009-11-25 20:11:55 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2009-11-25 20:11:55 +0100
commit826385f6ad38d3da2c1c71d2294857a78f7f1b2e (patch)
tree736ac59e14a1f3062bbb4cd6d787836af2029a6c /manager.py
parent634da8809635ed0cbe8c9442eb631b8d0281778f (diff)
downloadastroid-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.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/manager.py b/manager.py
index 0137adf..c31dd47 100644
--- a/manager.py
+++ b/manager.py
@@ -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