diff options
author | Simon Glass <sjg@chromium.org> | 2019-05-17 22:00:46 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-10 16:52:58 -0600 |
commit | c6c10e77fb48f3e55857e379be86384fbcdc19d5 (patch) | |
tree | 96e378365de845827a346236e1415d63a9b064ad /tools/binman/etype/_testing.py | |
parent | 58632a7f44cb0aef2c5cd4ede966c89abc430968 (diff) | |
download | u-boot-c6c10e77fb48f3e55857e379be86384fbcdc19d5.zip u-boot-c6c10e77fb48f3e55857e379be86384fbcdc19d5.tar.gz u-boot-c6c10e77fb48f3e55857e379be86384fbcdc19d5.tar.bz2 |
binman: Convert to use bytes type
With Python 3 we want to use the 'bytes' type instead of 'str'. Adjust the
code accordingly so that it works on both Python 2 and Python 3.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/etype/_testing.py')
-rw-r--r-- | tools/binman/etype/_testing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/etype/_testing.py b/tools/binman/etype/_testing.py index 3e345bd..ac62d2e 100644 --- a/tools/binman/etype/_testing.py +++ b/tools/binman/etype/_testing.py @@ -75,7 +75,7 @@ class Entry__testing(Entry): def ObtainContents(self): if self.return_unknown_contents or not self.return_contents: return False - self.data = 'a' + self.data = b'a' self.contents_size = len(self.data) if self.return_contents_once: self.return_contents = False |