* [PATCH 0/1] bitbake-layers: fix layerindex-fetch for Python 3
@ 2017-03-20 4:07 Paul Eggleton
2017-03-20 4:07 ` [PATCH 1/1] " Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2017-03-20 4:07 UTC (permalink / raw)
To: bitbake-devel
The following changes since commit 1ff9b3c669fa187f152de7b8b57d14c2468d926c:
tests/data: Add inactive remove override test (2017-03-16 12:54:59 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib paule/bblayers-fix
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=paule/bblayers-fix
Paul Eggleton (1):
bitbake-layers: fix layerindex-fetch for Python 3
lib/bblayers/layerindex.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] bitbake-layers: fix layerindex-fetch for Python 3
2017-03-20 4:07 [PATCH 0/1] bitbake-layers: fix layerindex-fetch for Python 3 Paul Eggleton
@ 2017-03-20 4:07 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2017-03-20 4:07 UTC (permalink / raw)
To: bitbake-devel
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>
---
lib/bblayers/layerindex.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bblayers/layerindex.py b/lib/bblayers/layerindex.py
index 013e952..506c110 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):
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-20 4:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-20 4:07 [PATCH 0/1] bitbake-layers: fix layerindex-fetch for Python 3 Paul Eggleton
2017-03-20 4:07 ` [PATCH 1/1] " Paul Eggleton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.