[issue10041] socket.makefile(mode = 'r').readline() silently removes carriage return

kai zhu report at bugs.python.org
Fri Oct 8 05:31:25 CEST 2010


kai zhu <kaizhu256 at gmail.com> added the comment:

my bad again, hacking newline parameter to the correct argument position works (its in the position where error should b).

a one line patch would be:

socket.py <line 163>
-        text = io.TextIOWrapper(buffer, encoding, newline)
+        text = io.TextIOWrapper(buffer, encoding, newline = newline)

----------

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


More information about the Python-bugs-list mailing list