Tools: correct copying of binary files under Python3

This commit is contained in:
Peter Barker 2022-02-23 11:08:52 +11:00 committed by Peter Barker
parent e0e84880b2
commit e312c3de30

View File

@ -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):