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

Method _check_read

Lib/gzip.py:338–342  ·  view source on GitHub ↗
(self, caller)

Source from the content-addressed store, hash-verified

336 return length
337
338 def _check_read(self, caller):
339 if self.mode != READ:
340 import errno
341 msg = f"{caller}() on write-only GzipFile object"
342 raise OSError(errno.EBADF, msg)
343
344 def read(self, size=-1):
345 self._check_not_closed()

Callers 5

readMethod · 0.95
read1Method · 0.95
readintoMethod · 0.95
readinto1Method · 0.95
peekMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected