MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / flush

Method flush

tools/python-3.11.9-amd64/Lib/gzip.py:346–351  ·  view source on GitHub ↗
(self,zlib_mode=zlib.Z_SYNC_FLUSH)

Source from the content-addressed store, hash-verified

344 myfileobj.close()
345
346 def flush(self,zlib_mode=zlib.Z_SYNC_FLUSH):
347 self._check_not_closed()
348 if self.mode == WRITE:
349 # Ensure the compressor's buffer is flushed
350 self.fileobj.write(self.compress.flush(zlib_mode))
351 self.fileobj.flush()
352
353 def fileno(self):
354 """Invoke the underlying file object's fileno() method.

Callers 1

closeMethod · 0.45

Calls 2

_check_not_closedMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected