Modified IntelHex tofile parameter to use path.

Py3 open(...) returns a BufferedReader instead of a file.
pull/7092/head
Cruz Monrreal II 2018-06-01 16:33:13 -05:00
parent e65537790e
commit cdbae994d1
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ def merge_region_list(region_list, destination, notify, padding=b'\xFF'):
notify.info("Space used after regions merged: 0x%x" %
(merged.maxaddr() - merged.minaddr() + 1))
with open(destination, "wb+") as output:
merged.tofile(output, format=format.strip("."))
merged.tofile(destination, format=format.strip("."))
def scan_resources(src_paths, toolchain, dependencies_paths=None,
inc_dirs=None, base_path=None, collect_ignores=False):