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

Method get_file

Lib/mailbox.py:393–396  ·  view source on GitHub ↗

Return a file-like representation or raise a KeyError.

(self, key)

Source from the content-addressed store, hash-verified

391 return f.read().replace(linesep, b'\n')
392
393 def get_file(self, key):
394 """Return a file-like representation or raise a KeyError."""
395 f = open(os.path.join(self._path, self._lookup(key)), 'rb')
396 return _ProxyFile(f)
397
398 def get_info(self, key):
399 """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