diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-10-11 23:28:59 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-10-28 12:49:56 -0400 |
commit | 328650032448425d64ec186fe24d84930f95d037 (patch) | |
tree | 8c7e43869aa21c5b1e264470b57a096c184722e9 /catalyst | |
parent | make_target_table: rewrite for py3/stability (diff) | |
download | catalyst-328650032448425d64ec186fe24d84930f95d037.tar.gz catalyst-328650032448425d64ec186fe24d84930f95d037.tar.bz2 catalyst-328650032448425d64ec186fe24d84930f95d037.zip |
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.
Diffstat (limited to 'catalyst')
-rw-r--r-- | catalyst/hash_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/catalyst/hash_utils.py b/catalyst/hash_utils.py index 1161da31..6e089678 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() |