[issue967934] csv module cannot handle embedded \r

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue967934 ___ ___ Python-bugs-list

[issue967934] csv module cannot handle embedded \r

2010-05-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: At some point I added test_roundtrip_quoteed_newlines to the csv unit tests, and it passes both on trunk and py3k. I believe if there was a bug here it has been fixed. I just backported the test to 2.6 in r81382, and it passes there

[issue967934] csv module cannot handle embedded \r

2009-02-14 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: IIUC, I get the correct behavior: trunk-py$ ./python ~/Desktop/tcsv.py ['fld1', 'fld2', 'fld3 ', 'fld4'] ['fld1', 'fld2', 'fld3 \r', 'fld4'] trunk-py$ cat ~/Desktop/tcsv.py #! /usr/local/bin/python import csv d = 'fld1,fld2,fld3 ,fld4\r\n' d2