Skip to content

Commit

Permalink
fix tools syntax to work with python 3.8 and earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
devbis committed Nov 11, 2023
1 parent 31deb77 commit 49a8e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/make_ota.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def main(args):
assert args.input_file != args.output

with (open(args.input_file, 'rb') as bin_file):
with open(args.input_file, 'rb') as bin_file:
bin_file.seek(0, 0)
firmware = bytearray(bin_file.read(-1))
if firmware[6:8] != OTA_MAGIC:
Expand Down

0 comments on commit 49a8e4f

Please sign in to comment.