On Mon, 12 Oct 2015 00:36:00 -0400
Mike Frysinger <[email protected]> wrote:
> 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()
looks good
--
Brian Dolbec <dolsen>