Serhiy Storchaka added the comment:
I understand you, it's a patch against 2.7.
>+ def readline(self, size=-1):
In io.IOBase.readline() and in io.TextIOBase.readline() this parameter named
"limit".
>+ if size is not None and len(str) == size:
>+ break
It can be moved to the while condition:
while chr != b"\n" and (size is None or len(str) < size):
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16042>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com