This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Vasyl Kolomiets
Recipients Vasyl Kolomiets, docs@python
Date 2016-01-14.19:29:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452799792.3.0.65685555924.issue26112@psf.upfronthosting.co.za>
In-reply-to
Content
with open('example.csv') as csvfile:
    dialect = csv.Sniffer().sniff(csvfile.read(1024))
    csvfile.seek(0)
    reader = csv.reader(csvfile, dialect)
    # ... process CSV file contents here ...
--

have to be:
    ...
    reader = csv.reader(csvfile, dialect=dialect)
     # ... process CSV file contents here ...

It's here:
https://docs.python.org/3.4/library/csv.html
History
Date User Action Args
2016-01-14 19:29:52Vasyl Kolomietssetrecipients: + Vasyl Kolomiets, docs@python
2016-01-14 19:29:52Vasyl Kolomietssetmessageid: <1452799792.3.0.65685555924.issue26112@psf.upfronthosting.co.za>
2016-01-14 19:29:52Vasyl Kolomietslinkissue26112 messages
2016-01-14 19:29:52Vasyl Kolomietscreate