(self, s)
Write string s to the stream.
Write string s to the stream.
Write string s to the stream .
def write(self, s):
        """Write string s to the stream.
        """
        if self.comptype == "gz":
            self.crc = self.zlib.crc32(s, self.crc)
        self.pos += len(s)
        if self.comptype != "tar":
            s = self.cmp.compress(s)
        self.__write(s)
def write ( self , s ) : if self . comptype == "gz" : self . crc = self . zlib . crc32 ( s , self . crc ) self . pos += len ( s ) if self . comptype != "tar" : s = self . cmp . compress ( s ) self . __write ( s )