Skip to content
Snippets Groups Projects
Commit 821402ba authored by Justin Kim's avatar Justin Kim
Browse files

ade: Use decode() function to bytes object


`subprocess.PIPE` returns a bytes object which has no attribute
`read`.

Signed-off-by: default avatarJustin Kim <justin.kim@collabora.com>
Reviewed-by: default avatarEmanuele Aina <emanuele.aina@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D5358
parent 20b07fc9
No related branches found
No related tags found
No related merge requests found
......@@ -291,7 +291,7 @@ class Simulator:
def _exec(self, *args):
r = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return r.stdout.read().decode().strip()
return r.stdout.decode().strip()
def install(self, bundle):
self._exec('ribchesterctl', 'remove', bundle.id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment