]> git.baikalelectronics.ru Git - uboot.git/commit
tools: binman: Open all binary files in binary mode
authorSimon Glass <sjg@chromium.org>
Tue, 14 May 2019 21:53:42 +0000 (15:53 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:45 +0000 (16:52 -0600)
commite06ce608f1c4f4d680b8b4aa5ca3709ac4cc9569
treea720b56b37fdc501d50dbefc3af0f4fc069c4be0
parent87abc874879ebe309e230b7e85be621ced419c41
tools: binman: Open all binary files in binary mode

At present some files are opened in text mode despite containing binary
data. This works on Python 2 but not always on Python 3, due to unicode
problems. BC&D are not my favourite people. Adjust the affected open()
statements to use binary mode.

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