(self,zlib_mode=zlib.Z_SYNC_FLUSH)
| 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. |