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

Method validate

Lib/logging/__init__.py:455–458  ·  view source on GitHub ↗

Validate the input format, ensure it matches the correct style

(self)

Source from the content-addressed store, hash-verified

453 return self._fmt.find(self.asctime_search) >= 0
454
455 def validate(self):
456 """Validate the input format, ensure it matches the correct style"""
457 if not self.validation_pattern.search(self._fmt):
458 raise ValueError("Invalid format '%s' for '%s' style" % (self._fmt, self.default_format[0]))
459
460 def _format(self, record):
461 if defaults := self._defaults:

Callers 1

__init__Method · 0.45

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected