Project

General

Profile

« Previous | Next » 

Revision 5437

csvs.py: is_tsv(): Support multi-char delimiters by checking only the first char of the delimiter

View differences:

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