1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-08 16:49:18 +01:00
Files
u-boot-megous/tools/binman/bsection.py
Simon Glass e6d85ff9f2 binman: Handle repeated bytes for Python 3
The method of multiplying a character by a number works well for creating
a repeated string in Python 2. But in Python 3 we need to use bytes()
instead, to avoid unicode problems, since 'bytes' is no-longer just an
alias of 'str'.

Create a function to handle this detail and call it from the relevant
places in binman.

Signed-off-by: Simon Glass <sjg@chromium.org>
2019-07-10 16:52:58 -06:00

17 KiB