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

Method get_bytes

Lib/mailbox.py:90–92  ·  view source on GitHub ↗

Return a byte string representation or raise a KeyError.

(self, key)

Source from the content-addressed store, hash-verified

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."""
92 raise NotImplementedError('Method must be implemented by subclass')
93
94 def get_file(self, key):
95 """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