]> git.pld-linux.org Git - packages/BitTorrent.git/commitdiff
- http://www.freebsd.org/cgi/cvsweb.cgi/ports/net/py-bittorrent/files/
authorkosmo <kosmo@pld-linux.org>
Thu, 6 Jan 2005 21:36:38 +0000 (21:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    BitTorrent-python24.patch -> 1.1

BitTorrent-python24.patch [new file with mode: 0644]

diff --git a/BitTorrent-python24.patch b/BitTorrent-python24.patch
new file mode 100644 (file)
index 0000000..6ee18b8
--- /dev/null
@@ -0,0 +1,18 @@
+--- A/BitTorrent/zurllib.py    Thu Dec  9 10:36:43 2004
++++ B/BitTorrent/zurllib.py    Thu Dec  9 10:38:19 2004
+@@ -35,7 +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):
This page took 0.033224 seconds and 4 git commands to generate.