Skip to content

Commit cc6d6dd

Browse files
author
amar-python
committed
Normalize eval CSV newlines on Windows
1 parent 730f9d6 commit cc6d6dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

evals/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _read_csv_rows(path: Path) -> List[List[str]]:
9999
if not path.exists():
100100
return []
101101
with path.open("r", encoding="utf-8", newline="") as f:
102-
return [row for row in csv.reader(f)]
102+
return [[cell.replace("\r\n", "\n") for cell in row] for row in csv.reader(f)]
103103

104104

105105
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)