Fix building with python 3

pull/7769/head
Olli-Pekka Puolitaival 2018-08-13 12:43:15 +03:00
parent 72a0bd4374
commit 2059fed945
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ class mbedToolchain:
except IOError:
old_md5 = None
if old_md5 != new_md5:
with open(via_file, "w") as fd:
with open(via_file, "wb") as fd:
fd.write(to_write)
return via_file