Skip to content

Commit 172210e

Browse files
Merge pull request #17 from PyconUK/newline
Fix line ending of schedule.csv
2 parents 823d5de + e45c3f1 commit 172210e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/scheduler/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def export_schedule(solution, events, slots, solution_folder):
107107
}
108108
for item in schedule
109109
]
110-
with csv_file.open('w') as f:
110+
with csv_file.open('w', newline='') as f:
111111
writer = csv.DictWriter(
112112
f, fieldnames=['event_index', 'event', 'slot_index', 'slot'])
113113
writer.writeheader()

0 commit comments

Comments
 (0)