diff options
| author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2008-03-31 15:26:54 +0200 |
|---|---|---|
| committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2008-03-31 15:26:54 +0200 |
| commit | a81ea54a973d86f39ff19b3aadea7e665f6d973a (patch) | |
| tree | 43049cca9c45678bfb66f7fa6484be565331aac2 /manager.py | |
| parent | 6b636000eceef3ac91a3fa40911291a95b73244f (diff) | |
| download | astroid-git-a81ea54a973d86f39ff19b3aadea7e665f6d973a.tar.gz | |
_ast compat step 2
--HG--
branch : _ast_compat
Diffstat (limited to 'manager.py')
| -rw-r--r-- | manager.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -34,7 +34,6 @@ from logilab.common.modutils import NoSourceFile, is_python_source, \ from logilab.common.configuration import OptionsProviderMixIn from logilab.astng import ASTNGBuildingException, nodes -from logilab.astng.utils import Instance def astng_wrapper(func, modname): """wrapper to give to ASTNGManager.project_from_files""" @@ -221,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 = Instance(infered) + infered = nodes.Instance(infered) yield infered def project_from_files(self, files, func_wrapper=astng_wrapper, |
