def write_member(self, data):
        """Writes the given data as one gzip member.
        
        The data can be a string, an iterator that gives strings or a file-like object.
        """
        if isinstance(data, basestring):
            self.write(data)
        else:
            for text in data:
                self.write(text)
        self.close_member()
def write_member ( self , data ) : if isinstance ( data , basestring ) : self . write ( data ) else : for text in data : self . write ( text ) self . close_member ( )
Writes the given data as one gzip member.
        
        The data can be a string, an iterator that gives strings or a file-like object.