From 6cab6777a80b689499fcc3946988032196d1a38b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 27 Dec 2020 18:03:02 +0000 Subject: [PATCH] lineterminator newline --- openpower/sv_analysis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpower/sv_analysis.py b/openpower/sv_analysis.py index 4aece594f..d4f7b16c7 100644 --- a/openpower/sv_analysis.py +++ b/openpower/sv_analysis.py @@ -35,8 +35,8 @@ def get_csv(name): # Write an array of dictionaries to the CSV file name: def write_csv(name, items, headers): file_path = find_wiki_file(name) - with open(file_path, 'w') as csvfile: - writer = csv.DictWriter(csvfile, headers) + with open(file_path, 'wb') as csvfile: + writer = csv.DictWriter(csvfile, headers, lineterminator="\n") writer.writeheader() writer.writerows(items) -- 2.30.2