From 803949ced1dddf4a3b37120fa855e8fb5dc7168a Mon Sep 17 00:00:00 2001 From: Jover Lee Date: Thu, 1 Aug 2024 16:13:19 -0700 Subject: [PATCH] Revert "write_records_to_tsv: Stop quoting output TSV" This reverts commit 915672e9db021588349ede4e23f21003455eb705. Per discussion in , keep CSV-like TSV where quotes may be added or removed, but parsed values should be equivalent. --- augur/io/metadata.py | 2 -- tests/io/test_metadata.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/augur/io/metadata.py b/augur/io/metadata.py index de474162d..95ae7b84b 100644 --- a/augur/io/metadata.py +++ b/augur/io/metadata.py @@ -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) diff --git a/tests/io/test_metadata.py b/tests/io/test_metadata.py index 6ddd27e92..548db3328 100644 --- a/tests/io/test_metadata.py +++ b/tests/io/test_metadata.py @@ -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" )