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