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

Method get_file

Lib/mailbox.py:400–403  ·  view source on GitHub ↗

Return a file-like representation or raise a KeyError.

(self, key)

Source from the content-addressed store, hash-verified

398 return f.read().replace(linesep, b'\n')
399
400 def get_file(self, key):
401 """Return a file-like representation or raise a KeyError."""
402 f = open(os.path.join(self._path, self._lookup(key)), 'rb')
403 return _ProxyFile(f)
404
405 def get_info(self, key):
406 """Get the keyed message's "info" as a string."""

Callers

nothing calls this directly

Calls 4

_lookupMethod · 0.95
_ProxyFileClass · 0.85
openFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected