summaryrefslogtreecommitdiff
path: root/manager.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-17 17:10:39 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-17 17:10:39 +0100
commitcd39af0ef8fb8c1d4f9c9c3cfe2cdf86760ef09a (patch)
treea72bf7da3233588ad9edb9c4642b39205ebf133f /manager.py
parent08f95b4db950d92733729388a0eaf8c2eb3fb637 (diff)
downloadastroid-git-cd39af0ef8fb8c1d4f9c9c3cfe2cdf86760ef09a.tar.gz
limit cyclic dependencies / cleanup by introducing a new infutils module
--HG-- branch : _ast_compat
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,