summaryrefslogtreecommitdiff
path: root/manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'manager.py')
-rw-r--r--manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/manager.py b/manager.py
index 0157ccf5..362ed9f6 100644
--- a/manager.py
+++ b/manager.py
@@ -33,7 +33,7 @@ from logilab.common.modutils import NoSourceFile, is_python_source, \
get_module_files, get_source_file
from logilab.common.configuration import OptionsProviderMixIn
-from logilab.astng import ASTNGBuildingException, nodes
+from logilab.astng import ASTNGBuildingException, nodes, infutils
def astng_wrapper(func, modname):
"""wrapper to give to ASTNGManager.project_from_files"""
@@ -220,7 +220,7 @@ class ASTNGManager(OptionsProviderMixIn):
modastng = self.astng_from_module_name(modname)
for infered in modastng.igetattr(name, context):
if klass is not obj and isinstance(infered, nodes.Class):
- infered = nodes.Instance(infered)
+ infered = infutils.Instance(infered)
yield infered
def project_from_files(self, files, func_wrapper=astng_wrapper,