diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2013-07-24 08:52:20 +0200 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2013-07-24 08:52:20 +0200 |
commit | 9427929322c30b7640523c4611c72717904227cc (patch) | |
tree | eacbf9631ef01d9793f7ffbbbdc0875d8e904375 /scoped_nodes.py | |
parent | ba2393d46474b72bb04b50dce629a9fa2bd6c7c5 (diff) | |
download | astroid-git-9427929322c30b7640523c4611c72717904227cc.tar.gz |
rename all astroid_from* method, introduced by sed, into ast_from*
Diffstat (limited to 'scoped_nodes.py')
-rw-r--r-- | scoped_nodes.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scoped_nodes.py b/scoped_nodes.py index 3886b7e1..0ee29be4 100644 --- a/scoped_nodes.py +++ b/scoped_nodes.py @@ -78,7 +78,7 @@ def builtin_lookup(name): return the list of matching statements and the astroid for the builtin module """ - builtin_astroid = MANAGER.astroid_from_module(builtins) + builtin_astroid = MANAGER.ast_from_module(builtins) if name == '__dict__': return builtin_astroid, () try: @@ -336,13 +336,13 @@ class Module(LocalsDictNodeNG): level = 0 absmodname = self.relative_to_absolute_name(modname, level) try: - return MANAGER.astroid_from_module_name(absmodname) + return MANAGER.ast_from_module_name(absmodname) except AstroidBuildingException: # we only want to import a sub module or package of this module, # skip here if relative_only: raise - return MANAGER.astroid_from_module_name(modname) + return MANAGER.ast_from_module_name(modname) def relative_to_absolute_name(self, modname, level): """return the absolute module name for a relative import. |