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

Method __str__

Lib/email/_header_value_parser.py:823–831  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

821 yield name, value
822
823 def __str__(self):
824 params = []
825 for name, value in self.params:
826 if value:
827 params.append('{}={}'.format(name, quote_string(value)))
828 else:
829 params.append(name)
830 params = '; '.join(params)
831 return ' ' + params if params else ''
832
833
834class ParameterizedHeaderValue(TokenList):

Callers

nothing calls this directly

Calls 4

quote_stringFunction · 0.85
appendMethod · 0.45
formatMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected