Skip Montanaro <s...@pobox.com> added the comment:

Daniel> Daniel Diniz <aja...@gmail.com> 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 <rep...@bugs.python.org>
<http://bugs.python.org/issue1511>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to