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

Method get_file

tools/python-3.11.9-amd64/Lib/mailbox.py:1321–1323  ·  view source on GitHub ↗

Return a file-like representation or raise a KeyError.

(self, key)

Source from the content-addressed store, hash-verified

1319 return headers + data
1320
1321 def get_file(self, key):
1322 """Return a file-like representation or raise a KeyError."""
1323 return io.BytesIO(self.get_bytes(key).replace(b'\n', linesep))
1324
1325 def get_labels(self):
1326 """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