Project

General

Profile

« Previous | Next » 

Revision 1411

csvs.py: Set dialect.doublequote to True because Sniffer doesn't turn this on by default

View differences:

csvs.py
8 8
    @return tuple (reader, header)'''
9 9
    header_line = stream.readline()
10 10
    dialect = csv.Sniffer().sniff(header_line)
11
    dialect.doublequote = True # Sniffer doesn't turn this on by default
11 12
    header = csv.reader(StringIO.StringIO(header_line), dialect).next()
12 13
    return (csv.reader(stream, dialect), header)

Also available in: Unified diff