Hi,
Attached is the diff for my bittorrent 3.4.2-8.1 NMU. -- adn Mohammed Adnène Trojette
diff -u bittorrent-3.4.2/debian/changelog bittorrent-3.4.2/debian/changelog --- bittorrent-3.4.2/debian/changelog +++ bittorrent-3.4.2/debian/changelog @@ -1,3 +1,12 @@ +bittorrent (3.4.2-8.1) unstable; urgency=medium + + * Non-maintainer upload. + * Applied a patch from Michael Vogt to make it work with python2.4 + (HTTPHandler.http_open() return changed) pulled from 3.4.2-3ubuntu2. + Closes: #383744 + + -- Mohammed Adnène Trojette <[EMAIL PROTECTED]> Tue, 29 Aug 2006 16:43:05 +0200 + bittorrent (3.4.2-8) unstable; urgency=low * Make BitTorrent modules accessible. Closes: #381586 only in patch2: unchanged: --- bittorrent-3.4.2.orig/BitTorrent/zurllib.py +++ bittorrent-3.4.2/BitTorrent/zurllib.py @@ -35,8 +35,14 @@ if DEBUG: pprint.pprint(headers.dict) url = fp.url - return addinfourldecompress(fp, headers, url) - + resp = addinfourldecompress(fp, headers, url) + # As of Python 2.4 http_open response also has 'code' and 'msg' + # members, and HTTPErrorProcessor breaks if they don't exist. + if 'code' in dir(fp): + resp.code = fp.code + if 'msg' in dir(fp): + resp.msg = fp.msg + return resp class addinfourldecompress(addinfourl): """Do gzip decompression if necessary. Do addinfourl stuff too."""