diff options
Diffstat (limited to 'manager.py')
-rw-r--r-- | manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |