Revision 5437
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/csvs.py | ||
---|---|---|
13 | 13 |
|
14 | 14 |
ending_placeholder = r'\n' |
15 | 15 |
|
16 |
def is_tsv(dialect): return dialect.delimiter == tsv_delim
|
|
16 |
def is_tsv(dialect): return dialect.delimiter.startswith(tsv_delim)
|
|
17 | 17 |
|
18 | 18 |
def sniff(line): |
19 | 19 |
'''Automatically detects the dialect''' |
Also available in: Unified diff
csvs.py: is_tsv(): Support multi-char delimiters by checking only the first char of the delimiter