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

Method flush

Lib/gzip.py:404–410  ·  view source on GitHub ↗
(self,zlib_mode=zlib.Z_SYNC_FLUSH)

Source from the content-addressed store, hash-verified

402 myfileobj.close()
403
404 def flush(self,zlib_mode=zlib.Z_SYNC_FLUSH):
405 self._check_not_closed()
406 if self.mode == WRITE:
407 self._buffer.flush()
408 # Ensure the compressor's buffer is flushed
409 self.fileobj.write(self.compress.flush(zlib_mode))
410 self.fileobj.flush()
411
412 def fileno(self):
413 """Invoke the underlying file object's fileno() method.

Callers 4

tellMethod · 0.45
closeMethod · 0.45
seekMethod · 0.45

Calls 2

_check_not_closedMethod · 0.80
writeMethod · 0.45

Tested by 1