commit | ac0d495875985296099da8a2d65caea6b2cd2146 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue May 14 15:53:47 2019 -0600 |
committer | Simon Glass <sjg@chromium.org> | Wed Jul 10 16:52:58 2019 -0600 |
tree | 5add11f4bc83ae9a6c2b9fe57157cb6031ccd16b | |
parent | 12a74f4c4ab3e8104f380d57b57ca91b5b783134 [diff] |
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>