def writelines(self, lines, fmt):
if isinstance(fmt, basestring):<EOL><INDENT>fmt = [fmt] * len(lines)<EOL><DEDENT>for f, line in zip(fmt, lines):<EOL><INDENT>self.writeline(f, line, self.endian)<EOL><DEDENT>
Write `lines` with given `format`.