commit: 328650032448425d64ec186fe24d84930f95d037 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Mon Oct 12 03:28:59 2015 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> 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()