Skip to content

Commit 97028c5

Browse files
cmonradbridge
authored andcommitted
Removed extraneous file open
1 parent cc5a36b commit 97028c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/build_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,7 @@ def merge_region_list(region_list, destination, notify, padding=b'\xFF'):
458458
makedirs(dirname(destination))
459459
notify.info("Space used after regions merged: 0x%x" %
460460
(merged.maxaddr() - merged.minaddr() + 1))
461-
with open(destination, "wb+") as output:
462-
merged.tofile(destination, format=format.strip("."))
461+
merged.tofile(destination, format=format.strip("."))
463462

464463
def scan_resources(src_paths, toolchain, dependencies_paths=None,
465464
inc_dirs=None, base_path=None, collect_ignores=False):

0 commit comments

Comments
 (0)