def write_member(self, data):
if isinstance(data, str):<EOL><INDENT>self.write(data)<EOL><DEDENT>else:<EOL><INDENT>for text in data:<EOL><INDENT>self.write(text)<EOL><DEDENT><DEDENT>self.close_member()<EOL>
Writes the given data as one gzip member.

        The data can be a string, an iterator that gives strings or a file-like object.