Skip to content
Snippets Groups Projects
Commit c4c5f9ee authored by Paul Burton's avatar Paul Burton Committed by sjg
Browse files

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: default avatarPaul Burton <paul.burton@imgtec.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 4ae6549f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment