def get(self, fullname): if isinstance(fullname, str) and is_builtin(fullname) != 0: raise ImportError() imp = self._raw_get(fullname) if not imp.exists: raise ImportError() return imp