]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
wic: decode output of subprocess.communicate
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 4 May 2016 13:06:25 +0000 (16:06 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 May 2016 06:26:42 +0000 (07:26 +0100)
commit5b556f58a171e3d45107bb56a1f780e5c1abba37
tree695ca377958158f54b3036fe5ded46de899fa948
parent997ff239bd753a7957cc14c6829b2f093d9bcef6
wic: decode output of subprocess.communicate

stdeout and stderr content returned by communicate API has different
types in Python 3(bytes) and Python 2(string). Decoding it to 'utf-8'
makes it unicode on both pythons.

Decoded stdout and stderr output to utf-8 to make the code
working under both Python 2 and Python 3.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/utils/runner.py