def write_record(self, warc_record):
warc_record.write_to(self.fileobj)<EOL>if isinstance(self.fileobj, gzip2.GzipFile):<EOL><INDENT>self.fileobj.close_member()<EOL><DEDENT>
Adds a warc record to this WARC file.