def _join_lines(lines):
if lines and lines[<NUM_LIT:0>].endswith(('<STR_LIT:\n>', '<STR_LIT:\r>')):<EOL><INDENT>return u'<STR_LIT>'.join(lines)<EOL><DEDENT>else:<EOL><INDENT>return u'<STR_LIT:\n>'.join(lines)<EOL><DEDENT>
join lines that have been written by splitlines()

    Has logic to protect against `splitlines()`, which
    should have been `splitlines(True)`