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

Method header_fetch_parse

Lib/email/_policybase.py:329–334  ·  view source on GitHub ↗

+ If the value contains binary data, it is converted into a Header object using the unknown-8bit charset. Otherwise it is returned unmodified.

(self, name, value)

Source from the content-addressed store, hash-verified

327 return (name, value)
328
329 def header_fetch_parse(self, name, value):
330 """+
331 If the value contains binary data, it is converted into a Header object
332 using the unknown-8bit charset. Otherwise it is returned unmodified.
333 """
334 return self._sanitize_header(name, value)
335
336 def fold(self, name, value):
337 """+

Callers

nothing calls this directly

Calls 1

_sanitize_headerMethod · 0.95

Tested by

no test coverage detected