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

Method get_file

Lib/mailbox.py:1395–1397  ·  view source on GitHub ↗

Return a file-like representation or raise a KeyError.

(self, key)

Source from the content-addressed store, hash-verified

1393 return headers + data
1394
1395 def get_file(self, key):
1396 """Return a file-like representation or raise a KeyError."""
1397 return io.BytesIO(self.get_bytes(key).replace(b'\n', linesep))
1398
1399 def get_labels(self):
1400 """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