Project

General

Profile

« Previous | Next » 

Revision 8070

csvs.py: sniff(): TSVs: Turn off quoting because TSVs use \-escapes instead of quotes to escape delimeters, newlines, etc.

View differences:

lib/csvs.py
24 24
    dialect = csv.Sniffer().sniff(line, delims)
25 25
    
26 26
    if is_tsv(dialect):
27
        dialect.quoting = csv.QUOTE_NONE
27 28
        # Check multi-char delims using \t
28 29
        delim = strings.find_any(line, tab_padded_delims)
29 30
        if delim:

Also available in: Unified diff