Skip to content

Commit

Permalink
Revert "write_records_to_tsv: Stop quoting output TSV"
Browse files Browse the repository at this point in the history
This reverts commit 915672e.

Per discussion in <#1563 (comment)>,
keep CSV-like TSV where quotes may be added or removed, but parsed
values should be equivalent.
  • Loading branch information
joverlee521 committed Aug 1, 2024
1 parent c28fab2 commit 8b00fbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions augur/io/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,7 @@ def write_records_to_tsv(records, output_file):
output_columns,
extrasaction='ignore',
delimiter='\t',
lineterminator='\n',
quoting=csv.QUOTE_NONE,
quotechar=None,
lineterminator='\n'
)
tsv_writer.writeheader()
tsv_writer.writerow(first_record)
Expand Down
2 changes: 1 addition & 1 deletion tests/io/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def output_records():
def expected_output_tsv():
return (
"strain\tcountry\tdate\n"
'SEQ_A\t"USA"\t2020-10-01\n'
'SEQ_A\t"""USA"""\t2020-10-01\n'
"SEQ_T\tUSA\t2020-10-02\n"
)

Expand Down

0 comments on commit 8b00fbd

Please sign in to comment.