Skip to content

Commit ef6773c

Browse files
committed
Fixed #386 - Add the newline=''
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 28743b0 commit ef6773c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributecode/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ def save_as_json(location, about_dicts):
12101210

12111211
def save_as_csv(location, about_dicts, field_names):
12121212
errors = []
1213-
with io.open(location, mode='w', encoding='utf-8') as output_file:
1213+
with io.open(location, mode='w', encoding='utf-8', newline='') as output_file:
12141214
writer = csv.DictWriter(output_file, field_names)
12151215
writer.writeheader()
12161216
csv_formatted_list = util.format_about_dict_for_csv_output(about_dicts)

0 commit comments

Comments
 (0)