1 --- A/BitTorrent/zurllib.py Thu Dec 9 10:36:43 2004
2 +++ B/BitTorrent/zurllib.py Thu Dec 9 10:38:19 2004
5 pprint.pprint(headers.dict)
7 - return addinfourldecompress(fp, headers, url)
8 + resp = addinfourldecompress(fp, headers, url)
9 + # As of Python 2.4 http_open response also has 'code' and 'msg'
10 + # members, and HTTPErrorProcessor breaks if they don't exist.
11 + if 'code' in dir(fp):
13 + if 'msg' in dir(fp):
18 class addinfourldecompress(addinfourl):