From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2209B13888F for ; Wed, 28 Oct 2015 16:50:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B54FF21C02A; Wed, 28 Oct 2015 16:50:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5080921C014 for ; Wed, 28 Oct 2015 16:50:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4F37E340ABF for ; Wed, 28 Oct 2015 16:50:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DCBF2184E for ; Wed, 28 Oct 2015 16:50:40 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1446050996.328650032448425d64ec186fe24d84930f95d037.vapier@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/hash_utils.py X-VCS-Directories: catalyst/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 328650032448425d64ec186fe24d84930f95d037 X-VCS-Branch: master Date: Wed, 28 Oct 2015 16:50:40 +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: e1fe316f-54d8-4459-a53a-02a219531b3d X-Archives-Hash: f94e8b7580c01e122d508e934887f7a5 commit: 328650032448425d64ec186fe24d84930f95d037 Author: Mike Frysinger gentoo org> AuthorDate: Mon Oct 12 03:28:59 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Wed Oct 28 16:49:56 2015 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=32865003 hash_utils: decode output of popen In py3, the return of popen is binary data. We need to decode it to get a string we can work with. catalyst/hash_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalyst/hash_utils.py b/catalyst/hash_utils.py index 1161da3..6e08967 100644 --- a/catalyst/hash_utils.py +++ b/catalyst/hash_utils.py @@ -117,7 +117,7 @@ class HashMap(object): log.debug('args = %r', args) source = Popen(args, stdout=PIPE) output = source.communicate() - lines = output[0].split('\n') + lines = output[0].decode('ascii').split('\n') log.debug('output = %s', output) header = lines[0] h_f = lines[1].split()