Lines Matching refs:format
139 return '_ModuleLock({!r}) at {}'.format(self.name, id(self))
160 return '_DummyModuleLock({!r}) at {}'.format(self.name, id(self))
249 print(message.format(*args), file=sys.stderr)
256 raise ImportError('{!r} is not a built-in module'.format(fullname),
267 raise ImportError('{!r} is not a frozen module'.format(fullname),
313 return '<module {!r}>'.format(name)
315 return '<module {!r} ({!r})>'.format(name, loader)
317 return '<module {!r} from {!r}>'.format(name, filename)
371 args = ['name={!r}'.format(self.name),
372 'loader={!r}'.format(self.loader)]
374 args.append('origin={!r}'.format(self.origin))
377 .format(self.submodule_search_locations))
378 return '{}({})'.format(self.__class__.__name__, ', '.join(args))
589 return '<module {!r}>'.format(name)
591 return '<module {!r} ({!r})>'.format(name, spec.loader)
594 return '<module {!r} from {!r}>'.format(name, spec.origin)
596 return '<module {!r} ({})>'.format(spec.name, spec.origin)
605 msg = 'module {!r} not in sys.modules'.format(name)
774 raise ImportError('{!r} is not a built-in module'.format(spec.name),
824 return '<module {!r} ({})>'.format(m.__name__, FrozenImporter._ORIGIN)
1041 return '{}.{}'.format(base, name) if name else base
1104 raise TypeError('module name must be str, not {}'.format(type(name)))
1134 msg = (_ERR_MSG + '; {!r} is not a package').format(name, parent)
1140 raise ModuleNotFoundError(_ERR_MSG.format(name), name=name)
1186 'None in sys.modules'.format(name))
1230 from_name = '{}.{}'.format(module.__name__, x)