Éric Araujo <mer...@netwok.org> added the comment: >>> The file passed to csv.writer should be opened with newline=''. >> How will we port this to 2.x? > No idea :-( The 2.7 documentation says use the 'b' flag, but that > probably doesn't allow an encoding parameter (it doesn't on 3.x).
Ah, I see that newline controls newline translation. We use codecs.open in distutils2; I think it uses universal newlines mode. We’ll figure it out, the important part is to have good tests. > The test fails before the fix, passes after. It's a no-op on platforms > where text and binary files are the same, (i.e., non-Windows systems). > So it's harmless. Great. I’ll look at your patch and try to port it to distutils2. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13175> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com