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

Method get_file

Lib/mailbox.py:1402–1404  ·  view source on GitHub ↗

Return a file-like representation or raise a KeyError.

(self, key)

Source from the content-addressed store, hash-verified

1400 return headers + data
1401
1402 def get_file(self, key):
1403 """Return a file-like representation or raise a KeyError."""
1404 return io.BytesIO(self.get_bytes(key).replace(b'\n', linesep))
1405
1406 def get_labels(self):
1407 """Return a list of user-defined labels in the mailbox."""

Callers

nothing calls this directly

Calls 2

get_bytesMethod · 0.95
replaceMethod · 0.45

Tested by

no test coverage detected