From dfe783d7299940db81893dd84c9bd5b7afb69645 Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Sun, 5 Mar 2017 13:43:22 +0000 Subject: [PATCH] firmware_sign: Python 3 compatibility (#156) --- bootloader/firmware_sign.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootloader/firmware_sign.py b/bootloader/firmware_sign.py index 09650a6ab7..a14bfaf6dc 100755 --- a/bootloader/firmware_sign.py +++ b/bootloader/firmware_sign.py @@ -189,7 +189,7 @@ def main(args): data = sign(data, args.pem) check_signatures(data) - fp = open(args.path, 'w') + fp = open(args.path, 'wb') fp.write(data) fp.close()