[issue3521] file.readline: bad exception recovery
Daniel Diniz
report at bugs.python.org
Thu Aug 28 01:00:32 CEST 2008
Daniel Diniz <ajaksu at gmail.com> 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 <report at bugs.python.org>
<http://bugs.python.org/issue3521>
_______________________________________
More information about the Python-bugs-list
mailing list