This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xhomol11
Recipients xhomol11
Date 2008-08-29.07:35:24
SpamBayes Score 0.0038691973
Marked as misclassified No
Message-id <1219995326.44.0.411202937388.issue3721@psf.upfronthosting.co.za>
In-reply-to
Content
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: ''
History
Date User Action Args
2008-08-29 07:35:26xhomol11setrecipients: + xhomol11
2008-08-29 07:35:26xhomol11setmessageid: <1219995326.44.0.411202937388.issue3721@psf.upfronthosting.co.za>
2008-08-29 07:35:25xhomol11linkissue3721 messages
2008-08-29 07:35:24xhomol11create