commit | 307f1fa626798a1f991eddb246d4ccd72776447e | [log] [tgz] |
---|---|---|
author | Paul Burton <paul.burton@imgtec.com> | Tue Sep 27 16:03:57 2016 +0100 |
committer | sjg <sjg@chromium.org> | Sun Oct 09 09:30:32 2016 -0600 |
tree | bf7d1fe32621b70250c37e699110ebefd3302290 | |
parent | 0a95448559e24570595dbc93e36aa9c7f129bd65 [diff] |
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>