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

Method _read

Lib/mailbox.py:2057–2064  ·  view source on GitHub ↗

Read size bytes using read_method.

(self, size, read_method)

Source from the content-addressed store, hash-verified

2055 del self._file
2056
2057 def _read(self, size, read_method):
2058 """Read size bytes using read_method."""
2059 if size is None:
2060 size = -1
2061 self._file.seek(self._pos)
2062 result = read_method(size)
2063 self._pos = self._file.tell()
2064 return result
2065
2066 def __enter__(self):
2067 """Context management protocol support."""

Callers 4

readMethod · 0.95
read1Method · 0.95
readlineMethod · 0.95
_readMethod · 0.45

Calls 2

seekMethod · 0.45
tellMethod · 0.45

Tested by

no test coverage detected