[issue967934] csv module cannot handle embedded \r

2010-05-20 Thread R. David Murray
R. David Murray 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 as well. Closing as ou

[issue967934] csv module cannot handle embedded \r

2010-05-20 Thread Skip Montanaro
Changes by Skip Montanaro : -- nosy: -skip.montanaro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue967934] csv module cannot handle embedded \r

2009-02-14 Thread Daniel Diniz
Daniel Diniz 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 = 'fld1,fld2,"f