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

Method flush

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

Source from the content-addressed store, hash-verified

404 myfileobj.close()
405
406 def flush(self,zlib_mode=zlib.Z_SYNC_FLUSH):
407 self._check_not_closed()
408 if self.mode == WRITE:
409 self._buffer.flush()
410 # Ensure the compressor's buffer is flushed
411 self.fileobj.write(self.compress.flush(zlib_mode))
412 self.fileobj.flush()
413
414 def fileno(self):
415 """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