diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2021-03-05 12:32:19 -0500 |
---|---|---|
committer | Kelvin Zhang <zhangkelvin@google.com> | 2021-03-05 13:24:14 -0500 |
commit | 472d561934b997d9b8d6cdba41f5c2c493bb0bf1 (patch) | |
tree | 2a4966c91f0c099e16adc58583567dd2f073952e /scripts/update_payload/format_utils.py | |
parent | 5bd4622bd6e91e97355c5cc0a4c9dc439cc29779 (diff) |
Fix python3 compatibility issues
Python3 expects write() to accept bytes or str, depending on file type(w
or wb). Since zipfile returns bytes, we must open output file with "wb",
which is the default.
Test: python3 update_device.py some_ota.zip
Change-Id: I9f163341921d7681988ee1eb01e98f0ecd5e98c9
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions