Lines Matching refs:fromlist
174 def import_hook(self, name, caller=None, fromlist=None, level=-1): argument
175 self.msg(3, "import_hook", name, caller, fromlist, level)
179 if not fromlist:
182 self.ensure_fromlist(m, fromlist)
262 def ensure_fromlist(self, m, fromlist, recursive=0): argument
263 self.msg(4, "ensure_fromlist", m, fromlist, recursive)
264 for sub in fromlist:
372 def _safe_import_hook(self, name, caller, fromlist, level=-1): argument
386 if fromlist:
387 for sub in fromlist:
412 fromlist = consts[opargs[i-1][1]]
414 yield "absolute_import", (fromlist, names[oparg])
416 yield "relative_import", (level, fromlist, names[oparg])
427 fromlist, name = args
429 if fromlist is not None:
430 if "*" in fromlist:
432 fromlist = [f for f in fromlist if f != "*"]
433 self._safe_import_hook(name, m, fromlist, level=0)
454 level, fromlist, name = args
456 self._safe_import_hook(name, m, fromlist, level=level)
459 self._safe_import_hook(parent.__name__, None, fromlist, level=0)