New submission from ivo <[EMAIL PROTECTED]>: I tested metode urllib2.read() on 2000 web_pages and there was a exception ValueError in only one case, here is short code:
import urllib2 req = urllib2.urlopen('http://www.peachbit.org/') req.read() Traceback (most recent call last): File "httplib_bug.py", line 6, in <module> req.read() File "/usr/lib/python2.5/socket.py", line 291, in read data = self._sock.recv(recv_size) File "/usr/lib/python2.5/httplib.py", line 509, in read return self._read_chunked(amt) File "/usr/lib/python2.5/httplib.py", line 548, in _read_chunked chunk_left = int(line, 16) ValueError: invalid literal for int() with base 16: '' ---------- components: Installation messages: 72121 nosy: xhomol11 severity: normal status: open title: invalid literal for int() with base 16: '' type: crash versions: Python 2.5 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3721> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com