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

Method _read2

Lib/zipfile/__init__.py:1190–1204  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

1188 return data
1189
1190 def _read2(self, n):
1191 if self._compress_left <= 0:
1192 return b''
1193
1194 n = max(n, self.MIN_READ_SIZE)
1195 n = min(n, self._compress_left)
1196
1197 data = self._fileobj.read(n)
1198 self._compress_left -= len(data)
1199 if not data:
1200 raise EOFError
1201
1202 if self._decrypter is not None:
1203 data = self._decrypter(data)
1204 return data
1205
1206 def close(self):
1207 try:

Callers 1

_read1Method · 0.95

Calls 1

readMethod · 0.45

Tested by

no test coverage detected