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

Function get_text_content

Lib/email/contentmanager.py:65–68  ·  view source on GitHub ↗
(msg, errors='replace')

Source from the content-addressed store, hash-verified

63
64
65def get_text_content(msg, errors='replace'):
66 content = msg.get_payload(decode=True)
67 charset = msg.get_param('charset', 'ASCII')
68 return content.decode(charset, errors=errors)
69raw_data_manager.add_get_handler('text', get_text_content)
70
71

Callers

nothing calls this directly

Calls 3

get_payloadMethod · 0.80
get_paramMethod · 0.80
decodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…