Skip Montanaro added the comment:
How are you calling the sniff() method? Note that it takes a sample of the CSV
file. For example, this works for me:
>>> f = open("sniff1.csv")
>>> dialect = csv.Sniffer().sniff(next(open("sniff1.csv")))
>>> dialect.delimiter
','
>>> dialect.lineterminator
'\r\n'
where sniff1.csv is your Dataset 1. (I think for reliable operation you really
want your sample to be a multiple of whole lines.)
----------
nosy: +skip.montanaro
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24787>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com