From: Luke Kenneth Casson Leighton Date: Sun, 27 Dec 2020 18:03:02 +0000 (+0000) Subject: lineterminator newline X-Git-Tag: convert-csv-opcode-to-binary~786 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6cab6777a80b689499fcc3946988032196d1a38b;p=libreriscv.git lineterminator newline --- 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)