Write benchmark evidence with portable line endings
This commit is contained in:
@@ -147,7 +147,7 @@ def main():
|
|||||||
output.parent.mkdir(parents=True, exist_ok=True)
|
output.parent.mkdir(parents=True, exist_ok=True)
|
||||||
new_file = not output.exists()
|
new_file = not output.exists()
|
||||||
with output.open("a", newline="") as result:
|
with output.open("a", newline="") as result:
|
||||||
writer = csv.DictWriter(result, fieldnames=FIELDS)
|
writer = csv.DictWriter(result, fieldnames=FIELDS, lineterminator="\n")
|
||||||
if new_file:
|
if new_file:
|
||||||
writer.writeheader()
|
writer.writeheader()
|
||||||
for history in HISTORY:
|
for history in HISTORY:
|
||||||
|
|||||||
Reference in New Issue
Block a user