On Tue, Aug 14, 2007 at 09:58:32AM -0400, Barry Warsaw wrote: > This was all fine except that some of the tests started > failing because of the EOL translation that happens unconditionally > now. The file contained \r\n and the test was ensuring these EOLs > were preserved in the parsed text. I switched back to opening the > file in binary mode, and doing a crufty conversion of bytes to > strings (which I suspect is error prone but gets me farther along). > > It would have been perfect, I think, if I could have opened the file > in text mode so that read() gave me strings, with universal newlines > and preservation of line endings (i.e. no translation to \n).
FWIW this same issue (and solution) came up while fixing the csv tests. -- Adam Hupp | http://hupp.org/adam/ _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com