Fixed double line breaks in output on Windows
All checks were successful
ydeng/csvbyname/pipeline/head This commit looks good
All checks were successful
ydeng/csvbyname/pipeline/head This commit looks good
This commit is contained in:
parent
59cfe486aa
commit
7a400457fe
@ -77,7 +77,7 @@ def write_collected_to_csv(
|
|||||||
property_keys: Iterable[str],
|
property_keys: Iterable[str],
|
||||||
output_basename: bool,
|
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)
|
s_property_keys = sorted(property_keys)
|
||||||
header = ["path"]
|
header = ["path"]
|
||||||
if output_basename:
|
if output_basename:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user