diff options
author | bst-marge-bot <marge-bot@buildstream.build> | 2019-03-01 21:40:35 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-03-01 21:40:35 +0000 |
commit | 960b920d1b8947f7116783f4d91461d2df059628 (patch) | |
tree | 41295665dfa216377f40baa93076ff6b58ef23ad /buildstream/_platform | |
parent | d223c8f416aa5fe7fdf805baccf5a33e2a6c9992 (diff) | |
parent | 5264b9093876a595d9c69892c5124f2fc55804e6 (diff) | |
download | buildstream-960b920d1b8947f7116783f4d91461d2df059628.tar.gz |
Merge branch 'bschubert/no-subprocess-decode' into 'master'
refactor: remove the need to decode output from subprocess
See merge request BuildStream/buildstream!1199
Diffstat (limited to 'buildstream/_platform')
-rw-r--r-- | buildstream/_platform/linux.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/buildstream/_platform/linux.py b/buildstream/_platform/linux.py index 702059a5d..85e810c26 100644 --- a/buildstream/_platform/linux.py +++ b/buildstream/_platform/linux.py @@ -143,8 +143,7 @@ class Linux(Platform): '--unshare-user', '--uid', '0', '--gid', '0', whoami, - ]) - output = output.decode('UTF-8').strip() + ], universal_newlines=True).strip() except subprocess.CalledProcessError: output = '' |