From d7483492a139875e720af1f5e85be60b117313ff Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomashipp@gmail.com>
Date: Fri, 9 Aug 2013 21:29:25 +0200
Subject: [PATCH] Fix twisted 13.1 compat
Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
---
deluge/httpdownloader.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/deluge/httpdownloader.py b/deluge/httpdownloader.py
index 4cc5cb1..e051b7a 100644
a
|
b
|
def download_file(url, filename, callback=None, headers=None, |
200 | 200 | if hasattr(client, '_parse'): |
201 | 201 | scheme, host, port, path = client._parse(url) |
202 | 202 | else: |
203 | | from twisted.web import _URI |
| 203 | from twisted.web.client import _URI |
204 | 204 | uri = _URI.fromBytes(url) |
205 | 205 | scheme = uri.scheme |
206 | 206 | host = uri.host |
207 | 207 | port = uri.port |
208 | | path = uri.originFrom |
| 208 | path = uri.path |
209 | 209 | |
210 | 210 | factory = HTTPDownloader(url, filename, callback, headers, force_filename, allow_compression) |
211 | 211 | if scheme == "https": |