[issue4631] urlopen returns extra, spurious bytes

Antoine Pitrou report at bugs.python.org
Wed Feb 11 00:03:50 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

Here is a patch without the _checkClosed() hack. The solution is simply
to remove redundant _checkClosed() calls in IOBase (for example,
readline() doesn't need to do an explicit `closed` check as it calls
read()).

Added file: http://bugs.python.org/file13021/urllib-chunked2.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4631>
_______________________________________


More information about the Python-bugs-list mailing list