]> git.pld-linux.org Git - packages/BitTorrent.git/blob - BitTorrent-python24.patch
- updated to 4.0.1
[packages/BitTorrent.git] / BitTorrent-python24.patch
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.029486 seconds and 3 git commands to generate.