Skip Montanaro <[email protected]> added the comment:
Daniel> Daniel Diniz <[email protected]> added the comment:
Daniel> I get different behavior in py3k compared to trunk:
Daniel> ~/trunk-py$ ./python issue1511_py3k.py
Daniel> [['foo', 'bar\r\nbaz\r\nbiff', 'boo']]
Daniel> 'foo,"bar\r\nbaz\r\nbiff",boo\r\n'
Daniel> ~/trunk-py$ ../py3k/python issue1511_py3k.py
Daniel> [['foo', 'bar\nbaz\nbiff', 'boo']]
Daniel> 'foo,"bar\nbaz\nbiff",boo\n'
Try adding newline='' to your open calls. I believe that will preserve the
CRLF pairs.
Skip
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1511>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com