diff options
author | Zac Medico <zmedico@gentoo.org> | 2017-02-20 20:44:03 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2017-02-20 20:44:24 -0800 |
commit | 18df6efa96f57830f26ca94c41e1f1e8cc30b3ca (patch) | |
tree | 51626247a1a7c4eefe81492b58aee8345845ce3e | |
parent | extractor.py: Add climit param for >=ssl-fetch-0.4 (diff) | |
download | mirrorselect-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-x | mirrorselect/main.py | 2 |
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: |