diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2016-05-25 04:19:34 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:10:04 +0100 |
commit | 3064d36186b47954eb94095217f7bb37e3fce651 (patch) | |
tree | 783b1b8af03d8c7565741d768b9d6a6f1c24efc4 /meta | |
parent | f6df164d09a4d4cf58977bf6cc0bc4f4bc71183a (diff) | |
download | openembedded-core-3064d36186b47954eb94095217f7bb37e3fce651.tar.gz openembedded-core-3064d36186b47954eb94095217f7bb37e3fce651.tar.bz2 openembedded-core-3064d36186b47954eb94095217f7bb37e3fce651.zip |
buildhistory_analysis: Convert stream data (bytes) to strings
The bytes type variables are threat different as strings variables in python3,
so convert bytes to strings. This was found when using the
script buildhistory-diff, where the interpreter was yielding this error
TypeError: Type str doesn't support the buffer API
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/buildhistory_analysis.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py index 0dcd49f4f1..16491a96e1 100644 --- a/meta/lib/oe/buildhistory_analysis.py +++ b/meta/lib/oe/buildhistory_analysis.py @@ -190,7 +190,7 @@ class FileChange: def blob_to_dict(blob): - alines = blob.data_stream.read().splitlines() + alines = [line.decode() for line in blob.data_stream.read().splitlines()] adict = {} for line in alines: splitv = [i.strip() for i in line.split('=',1)] |