tags 383744 +patch thanks This is due to a change in urllib2 between Python 2.3 and 2.4. It's fairly easy to accommodate, though I wonder whether it indicates zurllib shouldn't hook into urllib2 in quite this way.
diff -ur bittorrent-3.4.2.orig/BitTorrent/zurllib.py
bittorrent-3.4.2/BitTorrent/zurllib.py
--- bittorrent-3.4.2.orig/BitTorrent/zurllib.py 2003-06-27 00:40:21.000000000
+0000
+++ bittorrent-3.4.2/BitTorrent/zurllib.py 2006-08-28 13:10:32.000000000
+0000
@@ -35,7 +35,14 @@
if DEBUG:
pprint.pprint(headers.dict)
url = fp.url
- return addinfourldecompress(fp, headers, url)
+ resp = addinfourldecompress(fp, headers, url)
+ # Pass through code and msg for newer urllib2
+ for name in ['code', 'msg']:
+ try:
+ setattr(resp, name, getattr(fp, name))
+ except AttributeError:
+ pass
+ return resp
class addinfourldecompress(addinfourl):
-- END --
--
Ben Hutchings -- [EMAIL PROTECTED] shortened to [EMAIL PROTECTED]
If you've signed my GPG key, please send a signature on and to the new uid.
The program is absolutely right; therefore, the computer must be wrong.
signature.asc
Description: This is a digitally signed message part

