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 Nov 12, 2024
1 parent 2890452 commit 803949c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions augur/io/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,6 @@ def write_records_to_tsv(records, output_file):
extrasaction='ignore',
delimiter='\t',
lineterminator='\n',
quoting=csv.QUOTE_NONE,
quotechar=None,
)
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 803949c

Please sign in to comment.