def write(self, data):
if self.compressobj is None:<EOL><INDENT>self.file.write(data)<EOL><DEDENT>else:<EOL><INDENT>compressed = self.compressobj.compress(data)<EOL>self.file.write(compressed)<EOL><DEDENT>
Write some data on the stream.