summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind@gmail.com>2018-11-01 20:49:53 +0000
committerCalum Lind <calumlind@gmail.com>2018-11-02 08:47:57 +0000
commit6233e5c84417859c0f63f9c2b0cd2174bdff6e8f (patch)
tree0ce69ff4af7d61517c24400d7d560dd651a55f33
parenta01481b26f1c6b3941bb07e7badc83ec3baff92f (diff)
downloaddeluge-6233e5c84417859c0f63f9c2b0cd2174bdff6e8f.tar.gz
deluge-6233e5c84417859c0f63f9c2b0cd2174bdff6e8f.tar.bz2
deluge-6233e5c84417859c0f63f9c2b0cd2174bdff6e8f.zip
[Blocklist] Fix detecting compression type on Py3
The magic number is in bytes so ensure bytes in COMPRESSION_TYPES
-rw-r--r--deluge/plugins/Blocklist/deluge/plugins/blocklist/detect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/plugins/Blocklist/deluge/plugins/blocklist/detect.py b/deluge/plugins/Blocklist/deluge/plugins/blocklist/detect.py
index 9ed960adb..262d5de4f 100644
--- a/deluge/plugins/Blocklist/deluge/plugins/blocklist/detect.py
+++ b/deluge/plugins/Blocklist/deluge/plugins/blocklist/detect.py
@@ -12,7 +12,7 @@ from __future__ import unicode_literals
from .decompressers import BZipped2, GZipped, Zipped
from .readers import EmuleReader, PeerGuardianReader, SafePeerReader
-COMPRESSION_TYPES = {'PK': 'Zip', '\x1f\x8b': 'GZip', 'BZ': 'BZip2'}
+COMPRESSION_TYPES = {b'PK': 'Zip', b'\x1f\x8b': 'GZip', b'BZ': 'BZip2'}
DECOMPRESSERS = {'Zip': Zipped, 'GZip': GZipped, 'BZip2': BZipped2}