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

Method _check_read

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

Source from the content-addressed store, hash-verified

338 return length
339
340 def _check_read(self, caller):
341 if self.mode != READ:
342 import errno
343 msg = f"{caller}() on write-only GzipFile object"
344 raise OSError(errno.EBADF, msg)
345
346 def read(self, size=-1):
347 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