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

Method get_string

Lib/mailbox.py:90–95  ·  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

88 raise NotImplementedError('Method must be implemented by subclass')
89
90 def get_string(self, key):
91 """Return a string representation or raise a KeyError.
92
93 Uses email.message.Message to create a 7bit clean string
94 representation of the message."""
95 return email.message_from_bytes(self.get_bytes(key)).as_string()
96
97 def get_bytes(self, key):
98 """Return a byte string representation or raise a KeyError."""

Callers 1

test_notimplementedMethod · 0.95

Calls 2

get_bytesMethod · 0.95
as_stringMethod · 0.45

Tested by 1

test_notimplementedMethod · 0.76