Message247986
The sniffer actually changes its "mind" in the fourth line:
Python 3.4.0 (default, Jun 19 2015, 14:20:21)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import csv
>>> csv.Sniffer().sniff("""\
... Invoice File,Credit Memo,Amount Claimed,Description,Invoice,Message,
... Sscanner ac15072911220.pdf,CM_15203,28714.32,MX Jan Feb,948198,,
... Sscanner ac15072911221.pdf,CM 16148,15600,MX Unkwon,948199,,
... """).delimiter
','
>>> csv.Sniffer().sniff("""\
... Invoice File,Credit Memo,Amount Claimed,Description,Invoice,Message,
... Sscanner ac15072911220.pdf,CM_15203,28714.32,MX Jan Feb,948198,,
... Sscanner ac15072911221.pdf,CM 16148,15600,MX Unkwon,948199,,
... Sscanner ac15072911230.pdf,CM 16148,33488,MX Cavalier,948200,Photos don't match the invoice
... """).delimiter
'M'
That line has only 5 commas while all others have 6. Unfortunately all lines contain exactly two "M"... |
|
Date |
User |
Action |
Args |
2015-08-04 07:20:02 | peter.otten | set | recipients:
+ peter.otten, skip.montanaro, Tiago Wright |
2015-08-04 07:20:02 | peter.otten | set | messageid: <1438672802.49.0.763512453128.issue24787@psf.upfronthosting.co.za> |
2015-08-04 07:20:02 | peter.otten | link | issue24787 messages |
2015-08-04 07:20:02 | peter.otten | create | |
|