diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-10 15:28:50 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:03 +0100 |
commit | 96ce54315056ddba15b67d943a3778181b765bce (patch) | |
tree | 980437d22a3119436a975c7cd479bf540e7c7de3 /bitbake/lib/toaster/orm | |
parent | 46ed4fff34c648d34f7c0ebc30d2ae0c24fda98d (diff) | |
download | poky-96ce54315056ddba15b67d943a3778181b765bce.tar.gz |
bitbake: toaster: use decode('utf-8') for binary data
Decoded binary data to utf-8 to fix the following
error when runnign on python 3:
TypeError: Type str doesn't support the buffer API
[YOCTO #9584]
(Bitbake rev: 752ea00919ef054622a51ce097923309934eff2b)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 9183b0cd7c..58dc753aef 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -1169,7 +1169,7 @@ class LayerIndexLayerSource(LayerSource): | |||
1169 | except URLError as e: | 1169 | except URLError as e: |
1170 | raise Exception("Failed to read %s: %s" % (path, e.reason)) | 1170 | raise Exception("Failed to read %s: %s" % (path, e.reason)) |
1171 | 1171 | ||
1172 | return json.loads(res.read()) | 1172 | return json.loads(res.read().decode('utf-8')) |
1173 | 1173 | ||
1174 | # verify we can get the basic api | 1174 | # verify we can get the basic api |
1175 | try: | 1175 | try: |