MCPcopy Index your code
hub / github.com/python/cpython / _format

Method _format

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

substituteMethod · 0.80

Tested by

no test coverage detected