[issue25510] fileinput.FileInput.readline() always returns str object at the end even if in 'rb' mode

2015-10-29 Thread Ryosuke Ito
New submission from Ryosuke Ito: In Python3, fileinput.FileInput.readline() always returns str object at the end, even if in 'rb' mode. Here's a test code. import fileinput fi = fileinput.input('test_fileinput.py', mode='rb') while True: line = fi.re

[issue25510] fileinput.FileInput.readline() always returns str object at the end even if in 'rb' mode

2015-10-29 Thread Ryosuke Ito
Changes by Ryosuke Ito : -- components: +Library (Lib) versions: +Python 3.5 ___ Python tracker <http://bugs.python.org/issue25510> ___ ___ Python-bugs-list mailin

[issue25510] fileinput.FileInput.readline() always returns str object at the end even if in 'rb' mode

2015-10-29 Thread Ryosuke Ito
Changes by Ryosuke Ito : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue25510> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue25510] fileinput.FileInput.readline() always returns str object at the end even if in 'rb' mode

2015-11-01 Thread Ryosuke Ito
Ryosuke Ito added the comment: Add a test for fileinput.FileInput.readline() in 'rb' mode. I'm sure this test fails on Python 3.5 and fixed in the patch(fileinput.py.diff). -- Added file: http://bugs.python.org/file40918/test_fi