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

Method write

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

Source from the content-addressed store, hash-verified

308 self.fileobj.write(fname + b'\000')
309
310 def write(self,data):
311 self._check_not_closed()
312 if self.mode != WRITE:
313 import errno
314 raise OSError(errno.EBADF, "write() on read-only GzipFile object")
315
316 if self.fileobj is None:
317 raise ValueError("write() on closed GzipFile object")
318
319 return self._buffer.write(data)
320
321 def _write_raw(self, data):
322 # 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