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:83–88  ·  view source on GitHub ↗

Return a string representation or raise a KeyError. Uses email.message.Message to create a 7bit clean string representation of the message.

(self, key)

Source from the content-addressed store, hash-verified

81 raise NotImplementedError('Method must be implemented by subclass')
82
83 def get_string(self, key):
84 """Return a string representation or raise a KeyError.
85
86 Uses email.message.Message to create a 7bit clean string
87 representation of the message."""
88 return email.message_from_bytes(self.get_bytes(key)).as_string()
89
90 def get_bytes(self, key):
91 """Return a byte 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