From 84fd0eb005d8130106496d9e1c360cb0d8625f12 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 29 Nov 2017 14:34:56 -0800 Subject: bitbake: 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). (Bitbake rev: e75c68819086788bac1c4ca8a35aebeaf604e624) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- bitbake/lib/bblayers/layerindex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bblayers/layerindex.py b/bitbake/lib/bblayers/layerindex.py index 10ad718eba..f53a47fcfd 100644 --- a/bitbake/lib/bblayers/layerindex.py +++ b/bitbake/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): -- cgit v1.2.3-54-g00ecf