Normalize frozen profile CSV line endings
This commit is contained in:
@@ -185,7 +185,12 @@ def parse_batch_spec(spec: str) -> list[tuple[int, int]]:
|
||||
def write_csv(path: Path, fieldnames: list[str], rows: list[dict[str, Any]]) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
with path.open("w", newline="") as handle:
|
||||
writer = csv.DictWriter(handle, fieldnames=fieldnames, extrasaction="raise")
|
||||
writer = csv.DictWriter(
|
||||
handle,
|
||||
fieldnames=fieldnames,
|
||||
extrasaction="raise",
|
||||
lineterminator="\n",
|
||||
)
|
||||
writer.writeheader()
|
||||
writer.writerows(rows)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user