mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-09 16:19:59 +00:00
libhugetlbfs: update patch to make it work for python3
Fix error: TypeError: a bytes-like object is required, not 'str' Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+4
-1
@@ -12,6 +12,9 @@ Signed-off-by: Ting Liu <b28495@freescale.com>
|
|||||||
|
|
||||||
Update for 2.22.
|
Update for 2.22.
|
||||||
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
|
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
|
||||||
|
|
||||||
|
Update to work for python3
|
||||||
|
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
||||||
---
|
---
|
||||||
tests/run_tests.py | 12 +++++++++++-
|
tests/run_tests.py | 12 +++++++++++-
|
||||||
1 file changed, 11 insertions(+), 1 deletion(-)
|
1 file changed, 11 insertions(+), 1 deletion(-)
|
||||||
@@ -36,7 +39,7 @@ index 018264d..0aabcd1 100755
|
|||||||
+ return sizes
|
+ return sizes
|
||||||
+ except OSError:
|
+ except OSError:
|
||||||
+ return sizes
|
+ return sizes
|
||||||
+ out = p.stdout.read().strip()
|
+ out = p.stdout.read().decode().strip()
|
||||||
+
|
+
|
||||||
if rc != 0 or out == "":
|
if rc != 0 or out == "":
|
||||||
return sizes
|
return sizes
|
||||||
|
|||||||
Reference in New Issue
Block a user