parameters: (self, s)
docstring: Write string s to the stream.
docstring_summary: Write string s to the stream.
docstring_tokens: Write string s to the stream .
function: 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)
function_tokens: 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 )