Message72121
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: '' |
|
Date |
User |
Action |
Args |
2008-08-29 07:35:26 | xhomol11 | set | recipients:
+ xhomol11 |
2008-08-29 07:35:26 | xhomol11 | set | messageid: <1219995326.44.0.411202937388.issue3721@psf.upfronthosting.co.za> |
2008-08-29 07:35:25 | xhomol11 | link | issue3721 messages |
2008-08-29 07:35:24 | xhomol11 | create | |
|