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

Method get_bytes

Lib/mailbox.py:97–99  ·  view source on GitHub ↗

Return a byte string representation or raise a KeyError.

(self, key)

Source from the content-addressed store, hash-verified

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."""
99 raise NotImplementedError('Method must be implemented by subclass')
100
101 def get_file(self, key):
102 """Return a file-like representation or raise a KeyError."""

Callers 2

get_stringMethod · 0.95
test_notimplementedMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_notimplementedMethod · 0.76