Revision 7212
Added by Aaron Marcuse-Kubitza almost 12 years ago
lib/csvs.py | ||
---|---|---|
23 | 23 |
dialect = csv.Sniffer().sniff(line, delims) |
24 | 24 |
|
25 | 25 |
if is_tsv(dialect): |
26 |
# TSVs usually don't quote fields (nor doublequote embedded quotes) |
|
27 |
dialect.quoting = csv.QUOTE_NONE |
|
28 |
|
|
29 | 26 |
# Check multi-char delims using \t |
30 | 27 |
delim = strings.find_any(line, tab_padded_delims) |
31 | 28 |
if delim: |
Also available in: Unified diff
csvs.py: sniff(): TSVs: Don't turn off quoting, because some TSVs (such as Madidi.IndividualObservation) do quote fields