Daniel Diniz <[EMAIL PROTECTED]> added the comment: Patch attached, suggested test below.
def test_readline(): for mode in ('r', 'rb', 'r+', 'r+b'): f = open(__file__, mode) try: f.readline(0.1) except TypeError: tmp = f.readline() f.close() print('OK') test_readline() ---------- keywords: +patch nosy: +ajaksu2 Added file: http://bugs.python.org/file11276/file.readline.diff _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3521> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com