Lines Matching refs:fromlist
142 def import_hook(self, name, caller=None, fromlist=None, level=-1): argument
143 self.msg(3, "import_hook", name, caller, fromlist, level)
147 if not fromlist:
150 self.ensure_fromlist(m, fromlist)
230 def ensure_fromlist(self, m, fromlist, recursive=0): argument
231 self.msg(4, "ensure_fromlist", m, fromlist, recursive)
232 for sub in fromlist:
336 def _safe_import_hook(self, name, caller, fromlist, level=-1): argument
347 if fromlist:
348 for sub in fromlist:
374 fromlist = consts[opargs[i-1][1]]
375 yield "import", (fromlist, names[oparg])
392 fromlist = consts[opargs[i-1][1]]
394 yield "import", (fromlist, names[oparg])
396 yield "absolute_import", (fromlist, names[oparg])
398 yield "relative_import", (level, fromlist, names[oparg])
412 fromlist, name = args
414 if fromlist is not None:
415 if "*" in fromlist:
417 fromlist = [f for f in fromlist if f != "*"]
420 self._safe_import_hook(name, m, fromlist, level=level)
441 level, fromlist, name = args
443 self._safe_import_hook(name, m, fromlist, level=level)
446 self._safe_import_hook(parent.__name__, None, fromlist, level=0)