From e312c3de3007640ec159982fb8a50e3767628ce5 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 23 Feb 2022 11:08:52 +1100 Subject: [PATCH] Tools: correct copying of binary files under Python3 --- Tools/scripts/build_binaries.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/scripts/build_binaries.py b/Tools/scripts/build_binaries.py index e2092d425b..155b1207ba 100755 --- a/Tools/scripts/build_binaries.py +++ b/Tools/scripts/build_binaries.py @@ -349,6 +349,10 @@ is bob we will attempt to checkout bob-AVR''' '''returns content of filepath as a string''' with open(filepath, 'rb') as fh: content = fh.read() + + if running_python3: + return content.decode('ascii') + return content def string_in_filepath(self, string, filepath):