aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2016-05-25 04:19:34 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:24:02 +0100
commite2e3fa4259840fa8d7738ab46e984062c7f65bb8 (patch)
treeaa043e7fe7ff060fa846b0632aaf48257c172f5c /meta/lib
parent89d40a1f930c046b3cde1f3b4d1bdda0cadc70f5 (diff)
downloadopenembedded-core-contrib-e2e3fa4259840fa8d7738ab46e984062c7f65bb8.tar.gz
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 (From OE-Core rev: 3064d36186b47954eb94095217f7bb37e3fce651) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/buildhistory_analysis.py2
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)]