From 4e36eeee7797ed1e3418b3ccb81797211edab573 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Thu, 2 Jun 2016 13:13:00 +0300 Subject: scripts: python3: decode subprocess output stdeout and stderr content returned by subprocess API has different types in Python 3(bytes) and Python 2(string). Decoding it to 'utf-8' makes it unicode on both pythons. (From OE-Core rev: ae4d36375683b6cfd48af25bfca70b2e77f7ade5) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- scripts/combo-layer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/combo-layer') diff --git a/scripts/combo-layer b/scripts/combo-layer index 36a8f5fa1e..eaa7f5adb8 100755 --- a/scripts/combo-layer +++ b/scripts/combo-layer @@ -198,7 +198,7 @@ def runcmd(cmd,destdir=None,printerr=True,out=None,env=None): raise e err.seek(0) - output = err.read() + output = err.read().decode('utf-8') logger.debug("output: %s" % output.replace(chr(0), '\\0')) return output -- cgit v1.2.3-54-g00ecf