def buffer_put_lines(buf, lines):
if any(isinstance(x, str) for x in lines):<EOL><INDENT>lines = [str(x) for x in lines]<EOL><DEDENT>buf.write('<STR_LIT:\n>'.join(lines))<EOL>
Appends lines to a buffer.

Parameters
----------
buf
    The buffer to write to
lines
    The lines to append.