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

Method get_string

Lib/mailbox.py:851–854  ·  view source on GitHub ↗

Return a string representation or raise a KeyError.

(self, key, from_=False)

Source from the content-addressed store, hash-verified

849 return msg
850
851 def get_string(self, key, from_=False):
852 """Return a string representation or raise a KeyError."""
853 return email.message_from_bytes(
854 self.get_bytes(key, from_)).as_string(unixfrom=from_)
855
856 def get_bytes(self, key, from_=False):
857 """Return a string representation or raise a KeyError."""

Callers

nothing calls this directly

Calls 2

get_bytesMethod · 0.95
as_stringMethod · 0.45

Tested by

no test coverage detected