]> git.ipfire.org Git - thirdparty/u-boot.git/commit
patman: Adjust 'command' to return strings instead of bytes
authorSimon Glass <sjg@chromium.org>
Thu, 31 Oct 2019 13:42:50 +0000 (07:42 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Nov 2019 01:15:32 +0000 (18:15 -0700)
commit3b3e3c0f6c261a8c9f989d437dc261ba84467d4f
treefef28e49d1b53f29979a5a2c5ed88065bcc5fbe9
parentf0921f5098d8d98ac38121837aaf7c4b4cb13bb4
patman: Adjust 'command' to return strings instead of bytes

At present all the 'command' methods return bytes. Most of the time we
actually want strings, so change this. We still need to keep the internal
representation as bytes since otherwise unicode strings might break over
a read() boundary (e.g. 4KB), causing errors. But we can convert the end
result to strings.

Add a 'binary' parameter to cover the few cases where bytes are needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/cbfs_util_test.py
tools/binman/ftest.py
tools/patman/command.py
tools/patman/tools.py