]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: process: stop bb.process.communicate mixing bytes and str return types
authorMike Crowe <mac@mcrowe.com>
Fri, 24 Feb 2017 16:20:04 +0000 (16:20 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Mar 2017 11:16:07 +0000 (11:16 +0000)
commit7b75bf85059f0d4fc873b27d31ff17eb97815db9
tree3ffc90e05e3000963b132ae71c6e787f514b420b
parent32428263047c3dabdc06556242c3baaedac664ad
bitbake: process: stop bb.process.communicate mixing bytes and str return types

Python3 regards b"" as False so it is not being converted to a string by
d0f904d407f57998419bd9c305ce53e5eaa36b24. This confusingly causes three
different potential types for each member of the returned tuple.

Let's just assume that everything that's not None is a bytes object and
convert it to a string.

(Bitbake rev: 0cf5589b7fb3582a6caca5014c4d8152347df545)

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/process.py