aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2017-02-20 20:44:03 -0800
committerZac Medico <zmedico@gentoo.org>2017-02-20 20:44:24 -0800
commit18df6efa96f57830f26ca94c41e1f1e8cc30b3ca (patch)
tree51626247a1a7c4eefe81492b58aee8345845ce3e
parentextractor.py: Add climit param for >=ssl-fetch-0.4 (diff)
downloadmirrorselect-18df6efa96f57830f26ca94c41e1f1e8cc30b3ca.tar.gz
mirrorselect-18df6efa96f57830f26ca94c41e1f1e8cc30b3ca.tar.bz2
mirrorselect-18df6efa96f57830f26ca94c41e1f1e8cc30b3ca.zip
main.py: fix isinstance(hosts[i], bytes)
Fixes: c91509d823c2 ("main.py: Fix Bytes error in hosts list bug 610016")
-rwxr-xr-xmirrorselect/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrorselect/main.py b/mirrorselect/main.py
index 30345cc..4858875 100755
--- a/mirrorselect/main.py
+++ b/mirrorselect/main.py
@@ -109,7 +109,7 @@ class MirrorSelect(object):
var = 'GENTOO_MIRRORS'
for i in range(0, len(hosts)):
- if isinstance(hosts[i], 'bytes'):
+ if isinstance(hosts[i], bytes):
hosts[i] = hosts[i].decode('utf-8')
if var == "sync-uri" and out: