[issue2078] CSV Sniffer does not function properly on single column .csv files
report at bugs.python.org
Mon Mar 17 22:49:24 CET 2008
Wolfgang Langner <tds333 at gmail.com> added the comment:
The sniffer returns an dialect that is not really correct. Because the
delimiter is set to value and in this case there is no delimiter.
See it as, it returns a random delimiter if there is not really one.
But your usage of the DictReader is wrong. It have to be called with
csv.DictReader(file, dialect=dialect) and then it works in this example.
This could be closed.
versions: +Python 2.6, Python 3.0
Tracker <report at bugs.python.org>
More information about the Python-bugs-list