]> git.pld-linux.org Git - packages/BitTorrent.git/blame - BitTorrent-python24.patch
- License: MIT or BitTorrent Open Source License ?
[packages/BitTorrent.git] / BitTorrent-python24.patch
CommitLineData
43155943 1--- A/BitTorrent/zurllib.py Thu Dec 9 10:36:43 2004
2+++ B/BitTorrent/zurllib.py Thu Dec 9 10:38:19 2004
3@@ -35,7 +35,14 @@
4 if DEBUG:
5 pprint.pprint(headers.dict)
6 url = fp.url
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):
12+ resp.code = fp.code
13+ if 'msg' in dir(fp):
14+ resp.msg = fp.msg
15+ return resp
16
17
18 class addinfourldecompress(addinfourl):
This page took 0.025637 seconds and 4 git commands to generate.