1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-31 10:26:10 +01:00
Files
u-boot-megous/tools/dtoc/fdt_util.py
Paul Burton c4c5f9eefb dtoc: Decode strings for struct.unpack on python 3.x
On python 3.x struct.unpack will complain if we provide it with a
string since it expects to operate on a bytes object. In order to
satisfy this requirement, encode the string to a bytes object when
running on python 3.x.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
2016-10-09 09:30:32 -06:00

2.4 KiB