MCPcopy Index your code
hub / github.com/RustPython/RustPython / _format

Method _format

Lib/logging/__init__.py:538–543  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

536 raise ValueError('invalid format: no fields')
537
538 def _format(self, record):
539 if defaults := self._defaults:
540 values = defaults | record.__dict__
541 else:
542 values = record.__dict__
543 return self._tpl.substitute(**values)
544
545
546BASIC_FORMAT = "%(levelname)s:%(name)s:%(message)s"

Callers

nothing calls this directly

Calls 1

substituteMethod · 0.80

Tested by

no test coverage detected