MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / get_string

Method get_string

tools/python-3.11.9-amd64/Lib/mailbox.py:788–791  ·  view source on GitHub ↗

Return a string representation or raise a KeyError.

(self, key, from_=False)

Source from the content-addressed store, hash-verified

786 return msg
787
788 def get_string(self, key, from_=False):
789 """Return a string representation or raise a KeyError."""
790 return email.message_from_bytes(
791 self.get_bytes(key, from_)).as_string(unixfrom=from_)
792
793 def get_bytes(self, key, from_=False):
794 """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