Revision 5436
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/csvs.py | ||
---|---|---|
22 | 22 |
|
23 | 23 |
# TSVs usually don't quote fields (nor doublequote embedded quotes) |
24 | 24 |
if is_tsv(dialect): dialect.quoting = csv.QUOTE_NONE |
25 |
|
|
26 | 25 |
else: dialect.doublequote = True # Sniffer doesn't turn this on by default |
27 | 26 |
dialect.lineterminator = ending |
28 | 27 |
|
Also available in: Unified diff
csvs.py: sniff(): Also autodetect the line ending