diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2009-03-17 17:10:39 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2009-03-17 17:10:39 +0100 |
commit | cd39af0ef8fb8c1d4f9c9c3cfe2cdf86760ef09a (patch) | |
tree | a72bf7da3233588ad9edb9c4642b39205ebf133f /manager.py | |
parent | 08f95b4db950d92733729388a0eaf8c2eb3fb637 (diff) | |
download | astroid-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.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, |