def write(self, s):
if self.comptype == "<STR_LIT>":<EOL><INDENT>self.crc = self.zlib.crc32(s, self.crc)<EOL><DEDENT>self.pos += len(s)<EOL>if self.comptype != "<STR_LIT>":<EOL><INDENT>s = self.cmp.compress(s)<EOL><DEDENT>self.__write(s)<EOL>
Write string s to the stream.