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
Changes by Ryosuke Ito :
--
components: +Library (Lib)
versions: +Python 3.5
___
Python tracker
<http://bugs.python.org/issue25510>
___
___
Python-bugs-list mailin
Changes by Ryosuke Ito :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue25510>
___
___
Python-bugs-list mailing list
Unsubscrib
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