From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8AF6C139694 for ; Tue, 21 Feb 2017 04:44:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80B15E0F6C; Tue, 21 Feb 2017 04:44:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C7D4E0F6C for ; Tue, 21 Feb 2017 04:44:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 42DAD340EE8 for ; Tue, 21 Feb 2017 04:44:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 836004F25 for ; Tue, 21 Feb 2017 04:44:46 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1487652264.18df6efa96f57830f26ca94c41e1f1e8cc30b3ca.zmedico@gentoo> Subject: [gentoo-commits] proj/mirrorselect:master commit in: mirrorselect/ X-VCS-Repository: proj/mirrorselect X-VCS-Files: mirrorselect/main.py X-VCS-Directories: mirrorselect/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 18df6efa96f57830f26ca94c41e1f1e8cc30b3ca X-VCS-Branch: master Date: Tue, 21 Feb 2017 04:44:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 64384f1b-f52c-4639-8d1f-c2ab83210814 X-Archives-Hash: 3e0c3632577932edfe3f8a060cc37617 commit: 18df6efa96f57830f26ca94c41e1f1e8cc30b3ca Author: Zac Medico gentoo org> AuthorDate: Tue Feb 21 04:44:03 2017 +0000 Commit: Zac Medico gentoo 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: