[issue20520] Readline test in test_codecs is broken

Serhiy Storchaka report at bugs.python.org
Wed Feb 5 16:54:46 CET 2014


Serhiy Storchaka added the comment:

> "\n \r\n \r \u2028".split() should have been "\n \r\n \r \u2028".split(" "),
> i.e. a list of different line ends.

Yes, this is obvious fix, but explicit tuple of line ends looks more clear and 
error-proof to me.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20520>
_______________________________________


More information about the Python-bugs-list mailing list