[I18n-sig] codecs module, readlines and xreadlines

Martin v. Löwis martin@v.loewis.de
16 Jan 2003 00:06:15 +0100


Poor Yorick <gp@pooryorick.com> writes:

> The following code shows an inconsistency between open.readlines and
> codecs.open.readlines, and also between open.xreadlines and
> codecs.open.xreadlines.  the call to open.readlines returns '\n' as the
> whereas codecs.open.readlines returns '\r\n'.  Any plans to fix this?

Not without a bug report, or better yet, an actual patch. I think it
would be best if codecs supported the "universal newlines" feature of
Python 2.3.

Regards,
Martin