#2355: Twisted 13.1 incompatible?
------------------------+---------------------------------------------------
Reporter: semi225599 | Owner:
Type: bug | Status: new
Priority: major | Milestone: Future
Component: other | Version: 1.3.6
Keywords: |
------------------------+---------------------------------------------------
Comment(by mintchkin):
Sorry, this is my first time doing one of these, but if it helps at all,
this bug appears to affect any action that requires downloading a file
(including trying to download a torrent file) and can be fixed by changing
the lines from:
deluge-1.3.6\deluge\httpdownloader.py
{{{
41 : import os.path
42 : import zlib
...
195: scheme, host, port, path = client._parse(url)
196: factory = HTTPDownloader(url, filename, callback, headers,
force_filename, allow_compression)
197: if scheme == "https":
}}}
to something like:
deluge-1.3.6\deluge\httpdownloader.py
{{{
41 : import os.path
42 : import zlib
xxx: import urlparse
...
xxx: parsed = urlparse(url)
xxx: scheme, host= parsed[:2]
xxx: port = parsed.port or (443 if scheme == 'https' else 80)
xxx: path = parsed.path or '/'
196: factory = HTTPDownloader(url, filename, callback, headers,
force_filename, allow_compression)
197: if scheme == "https":
}}}
which should perform identically to the now defunct
twisted.web.client._parse()
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/2355#comment:5>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/groups/opt_out.