MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_string

Method get_string

Lib/mailbox.py:844–847  ·  view source on GitHub ↗

Return a string representation or raise a KeyError.

(self, key, from_=False)

Source from the content-addressed store, hash-verified

842 return msg
843
844 def get_string(self, key, from_=False):
845 """Return a string representation or raise a KeyError."""
846 return email.message_from_bytes(
847 self.get_bytes(key, from_)).as_string(unixfrom=from_)
848
849 def get_bytes(self, key, from_=False):
850 """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