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.21:50:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452808232.54.0.345665768771.issue26116@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 21:50:32Vasyl Kolomietssetrecipients: + Vasyl Kolomiets, docs@python
2016-01-14 21:50:32Vasyl Kolomietssetmessageid: <1452808232.54.0.345665768771.issue26116@psf.upfronthosting.co.za>
2016-01-14 21:50:32Vasyl Kolomietslinkissue26116 messages
2016-01-14 21:50:32Vasyl Kolomietscreate