diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-01-13 16:06:53 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-01-13 16:06:53 +0100 |
commit | 51891dc8179a709bf18c7f2869ca32f2ec8a2e92 (patch) | |
tree | 861765fd6548b65046c8587cf39286c49bee0d8d /astroid/inference.py | |
parent | fd41070d76f323f089a120c72fb9b0d87e7f4a20 (diff) | |
download | astroid-git-51891dc8179a709bf18c7f2869ca32f2ec8a2e92.tar.gz |
Move infer_name_module() in pylint and remove it from here
Diffstat (limited to 'astroid/inference.py')
-rw-r--r-- | astroid/inference.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/astroid/inference.py b/astroid/inference.py index 3836c090..09c6eb60 100644 --- a/astroid/inference.py +++ b/astroid/inference.py @@ -245,15 +245,6 @@ def infer_import(self, context=None, asname=True): nodes.Import._infer = infer_import -def infer_name_module(self, name): - context = contextmod.InferenceContext() - context.lookupname = name - return self.infer(context, asname=False) - - -nodes.Import.infer_name_module = infer_name_module - - @decorators.raise_if_nothing_inferred @decorators.path_wrapper def infer_import_from(self, context=None, asname=True): |