def _flush(self):
if self.compressobj is not None:<EOL><INDENT>compressed = self.compressobj.flush()<EOL>self.file.write(compressed)<EOL>self.compressobj = None<EOL><DEDENT>
Flush the compression object.