bin/gen_calendar_entries: fix newlines on windows
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 17 Aug 2021 10:16:41 +0000 (12:16 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sun, 16 Jan 2022 08:39:44 +0000 (08:39 +0000)
commitb6cc240db1cab25b94b5d471c730185ad374b2b9
tree91c9ef0f001c93cc76aef92c3ad464696f2d9dbc
parent493f68833128959539a6e202a6cfb18ab76bcf12
bin/gen_calendar_entries: fix newlines on windows

The documentation[1] for the csv module specifies that we should specify
newline='' when opening the output file. Without that, the module
garbles the newlines, writing them as \r\r\n on Windows instead of \r\n.

So let's do what the documentation says, and specify newline=''

[1]: https://docs.python.org/3/library/csv.html#id3

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12405>
bin/gen_calendar_entries.py