Skip to content

Commit

Permalink
Bug 1620744 - Convert dumpsymbols.py to py3; r=firefox-build-system-r…
Browse files Browse the repository at this point in the history
…eviewers,rstewart

Differential Revision: https://phabricator.services.mozilla.com/D65856

--HG--
extra : moz-landing-system : lando
  • Loading branch information
mshal committed Mar 10, 2020
1 parent b5ef4a8 commit c2e3a05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ define syms_template
syms:: $(2)
$(2): $(1)
ifdef MOZ_CRASHREPORTER
$$(call py_action,dumpsymbols,$$(abspath $$<) $$(abspath $$@) $$(DUMP_SYMBOLS_FLAGS))
$$(call py3_action,dumpsymbols,$$(abspath $$<) $$(abspath $$@) $$(DUMP_SYMBOLS_FLAGS))
endif
endef

Expand Down
4 changes: 2 additions & 2 deletions python/mozbuild/mozbuild/action/dumpsymbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def dump_symbols(target, tracking_file, count_ctors=False):
if count_ctors:
args.append('--count-ctors')
print('Running: %s' % ' '.join(args))
out_files = subprocess.check_output(args)
with open(tracking_file, 'w') as fh:
out_files = subprocess.check_output(args, universal_newlines=True)
with open(tracking_file, 'w', encoding='utf-8', newline='\n') as fh:
fh.write(out_files)
fh.flush()

Expand Down

0 comments on commit c2e3a05

Please sign in to comment.