code: 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)
docs: Write string s to the stream.