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

Method write

Lib/gzip.py:312–321  ·  view source on GitHub ↗
(self,data)

Source from the content-addressed store, hash-verified

310 self.fileobj.write(fname + b'\000')
311
312 def write(self,data):
313 self._check_not_closed()
314 if self.mode != WRITE:
315 import errno
316 raise OSError(errno.EBADF, "write() on read-only GzipFile object")
317
318 if self.fileobj is None:
319 raise ValueError("write() on closed GzipFile object")
320
321 return self._buffer.write(data)
322
323 def _write_raw(self, data):
324 # Called by our self._buffer underlying WriteBufferStream.

Callers 10

seekMethod · 0.95
mainFunction · 0.95
test_with_openMethod · 0.95
write32uFunction · 0.45
_write_gzip_headerMethod · 0.45
_write_rawMethod · 0.45
closeMethod · 0.45
flushMethod · 0.45

Calls 1

_check_not_closedMethod · 0.80

Tested by 3

test_with_openMethod · 0.76