commit: 18df6efa96f57830f26ca94c41e1f1e8cc30b3ca Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Tue Feb 21 04:44:03 2017 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue Feb 21 04:44:24 2017 +0000 URL: https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=18df6efa
main.py: fix isinstance(hosts[i], bytes) Fixes: c91509d823c2 ("main.py: Fix Bytes error in hosts list bug 610016") mirrorselect/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: