summaryrefslogtreecommitdiffstats
path: root/deluge/core/core.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2017-02-12 11:26:31 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2017-02-22 12:36:33 +0000
commitff6cec251a17a0d8ef9193ebc7dbc43e1cd866c3 (patch)
tree549c45a3ee8d13623c037a49accc2bc843b60345 /deluge/core/core.py
parent84802da29b71679547ba245ea3d870512dba3b49 (diff)
downloaddeluge-ff6cec251a17a0d8ef9193ebc7dbc43e1cd866c3.tar.gz
deluge-ff6cec251a17a0d8ef9193ebc7dbc43e1cd866c3.tar.bz2
deluge-ff6cec251a17a0d8ef9193ebc7dbc43e1cd866c3.zip
[Core] Markup byte-strings to fix httpdownloader and core tests
* Twisted methods require byte-string arguments. * The headers str conversion in httpdownloader _download_file was incorrent and left the dict key still as unicode so replaced with a dict comprehension (py2.7 requirement).
Diffstat (limited to 'deluge/core/core.py')
-rw-r--r--deluge/core/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/core/core.py b/deluge/core/core.py
index 7c860eb42..f0d2eb523 100644
--- a/deluge/core/core.py
+++ b/deluge/core/core.py
@@ -985,7 +985,7 @@ class Core(component.Component):
:rtype: bool
"""
- d = getPage('http://deluge-torrent.org/test_port.php?port=%s' %
+ d = getPage(b'http://deluge-torrent.org/test_port.php?port=%s' %
self.get_listen_port(), timeout=30)
def on_get_page(result):