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

Method read

Lib/gzip.py:344–347  ·  view source on GitHub ↗
(self, size=-1)

Source from the content-addressed store, hash-verified

342 raise OSError(errno.EBADF, msg)
343
344 def read(self, size=-1):
345 self._check_not_closed()
346 self._check_read("read")
347 return self._buffer.read(size)
348
349 def read1(self, size=-1):
350 """Implements BufferedIOBase.read1()

Callers 10

mainFunction · 0.95
test_read_largeMethod · 0.95
open_urlresourceFunction · 0.95
readMethod · 0.45
_read_exactFunction · 0.45
_read_gzip_headerFunction · 0.45
readMethod · 0.45
_read_eofMethod · 0.45

Calls 2

_check_readMethod · 0.95
_check_not_closedMethod · 0.80

Tested by 3

test_read_largeMethod · 0.76