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

Method get_bytes

tools/python-3.11.9-amd64/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 1

get_stringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected