]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/terminal.py: decode bytes variable before rstrip/split
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Thu, 9 Jun 2016 12:53:06 +0000 (07:53 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 12 Jun 2016 22:39:21 +0000 (23:39 +0100)
commitb950539c911b7945d652b05616164828e711ac7f
tree0d809a02938582c07d628d47dc35c2d1cd751ef7
parent991174af2dd3905b8d11022a8ff05b2df90ad8d3
lib/oe/terminal.py: decode bytes variable before rstrip/split

On python 3, bytes variable types must be decoded if these are intended to be
used as strings, otherwise we get the following error exception:

    TypeError: Type str doesn't support the buffer API

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/terminal.py