]> granicus.if.org Git - python/commit
Fix a delimiter detection problem in sniffer. Sniffing "a|b|c\r\n" was
authorSkip Montanaro <skip@pobox.com>
Fri, 30 Dec 2005 05:09:48 +0000 (05:09 +0000)
committerSkip Montanaro <skip@pobox.com>
Fri, 30 Dec 2005 05:09:48 +0000 (05:09 +0000)
commit39b29be8a6639212402303adab4df29976d8fc7c
tree39ec5c719125381f6898668ba36f1090334359d0
parent0174dddc65af50900324afca3c5d2400858b75f0
Fix a delimiter detection problem in sniffer.  Sniffing "a|b|c\r\n" was
returning 'a' as the delimiter.  It now returns '|', but not because I
understood better what the code was supposed to do.  Would someone that
understands the idea behind _guess_delimiter() (see its doc string) look to
see if my fallback choice is better than before or if it's just serendipity
that I picked the proper delimiter?
Lib/csv.py
Lib/test/test_csv.py