We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
newline=''
1 parent 28743b0 commit ef6773cCopy full SHA for ef6773c
src/attributecode/model.py
@@ -1210,7 +1210,7 @@ def save_as_json(location, about_dicts):
1210
1211
def save_as_csv(location, about_dicts, field_names):
1212
errors = []
1213
- with io.open(location, mode='w', encoding='utf-8') as output_file:
+ with io.open(location, mode='w', encoding='utf-8', newline='') as output_file:
1214
writer = csv.DictWriter(output_file, field_names)
1215
writer.writeheader()
1216
csv_formatted_list = util.format_about_dict_for_csv_output(about_dicts)
0 commit comments