Use tuple instead of list for joining

This commit is contained in:
Bo Maryniuk 2017-11-10 19:47:51 +01:00
parent ec3e8211ef
commit 7949925ae6

View File

@ -1924,9 +1924,9 @@ def line(path, content=None, match=None, mode=None, location=None,
else:
if location == 'start':
body = os.linesep.join([content, body])
body = os.linesep.join((content, body))
elif location == 'end':
body = os.linesep.join([body, _get_line_indent(body[-1], content, indent) if body else content])
body = os.linesep.join((body, _get_line_indent(body[-1], content, indent) if body else content))
elif mode == 'ensure':
after = after and after.strip()