Fixed double line breaks in output on Windows
All checks were successful
ydeng/csvbyname/pipeline/head This commit looks good

This commit is contained in:
Harrison Deng 2023-04-23 14:56:29 -05:00
parent 59cfe486aa
commit 7a400457fe

View File

@ -77,7 +77,7 @@ def write_collected_to_csv(
property_keys: Iterable[str],
output_basename: bool,
):
with open(output_path, "w") as output_fd:
with open(output_path, "w", newline="", encoding="utf-8") as output_fd:
s_property_keys = sorted(property_keys)
header = ["path"]
if output_basename: