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

Method parse

Lib/email/headerregistry.py:509–512  ·  view source on GitHub ↗
(cls, value, kwds)

Source from the content-addressed store, hash-verified

507
508 @classmethod
509 def parse(cls, value, kwds):
510 kwds['parse_tree'] = parse_tree = cls.value_parser(value)
511 kwds['decoded'] = str(parse_tree)
512 kwds['defects'].extend(parse_tree.all_defects)
513
514 def init(self, *args, **kw):
515 super().init(*args, **kw)

Callers

nothing calls this directly

Calls 3

strFunction · 0.85
value_parserMethod · 0.80
extendMethod · 0.45

Tested by

no test coverage detected