summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-11-29 14:34:56 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-18 15:09:07 +0000
commite75c68819086788bac1c4ca8a35aebeaf604e624 (patch)
tree421983bb79cdf7c74fe7dea4f6e9edd85d6fd43c
parent991b533f1d61042a7b3edd1fbf3dea0bf9991606 (diff)
downloadbitbake-e75c68819086788bac1c4ca8a35aebeaf604e624.tar.gz
bitbake-layers: fix layerindex-fetch for Python 3
The data we read from an HTTPConnection comes in the form of bytes, but we need it as a string, so in Python 3 we need to decode it (missed in the Python 3 migration). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bblayers/layerindex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bblayers/layerindex.py b/lib/bblayers/layerindex.py
index 10ad718eb..f53a47fcf 100644
--- a/lib/bblayers/layerindex.py
+++ b/lib/bblayers/layerindex.py
@@ -56,7 +56,7 @@ class LayerIndexPlugin(ActionPlugin):
r = conn.getresponse()
if r.status != 200:
raise Exception("Failed to read " + path + ": %d %s" % (r.status, r.reason))
- return json.loads(r.read())
+ return json.loads(r.read().decode())
def get_layer_deps(self, layername, layeritems, layerbranches, layerdependencies, branchnum, selfname=False):
def layeritems_info_id(items_name, layeritems):