From 821402bab453caa6ff09c65aac8c01d2c77eaf0c Mon Sep 17 00:00:00 2001 From: Justin Kim <justin.kim@collabora.com> Date: Tue, 20 Dec 2016 07:46:11 +0000 Subject: [PATCH] ade: Use decode() function to bytes object `subprocess.PIPE` returns a bytes object which has no attribute `read`. Signed-off-by: Justin Kim <justin.kim@collabora.com> Reviewed-by: Emanuele Aina <emanuele.aina@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D5358 --- tools/ade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ade b/tools/ade index bfc4865..f3519e0 100755 --- a/tools/ade +++ b/tools/ade @@ -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) -- GitLab