Skip to content

Commit

Permalink
Bug 1620744 - Convert generated_sources.py to py3; r=firefox-build-sy…
Browse files Browse the repository at this point in the history
…stem-reviewers,rstewart

Differential Revision: https://phabricator.services.mozilla.com/D65853
  • Loading branch information
mshal committed Mar 10, 2020
1 parent fe5bc0a commit f0f81b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ update-packaging:

.PHONY: package-generated-sources
package-generated-sources:
$(call py_action,package_generated_sources,'$(DIST)/$(PKG_PATH)$(GENERATED_SOURCE_FILE_PACKAGE)')
$(call py3_action,package_generated_sources,'$(DIST)/$(PKG_PATH)$(GENERATED_SOURCE_FILE_PACKAGE)')

ifdef JS_STANDALONE
# Delegate js-specific rules to js
Expand Down
2 changes: 1 addition & 1 deletion python/mozbuild/mozbuild/generated_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_generated_sources():

# First, get the list of generated sources produced by the build backend.
gen_sources = os.path.join(buildconfig.topobjdir, 'generated-sources.json')
with open(gen_sources, 'rb') as f:
with open(gen_sources, 'r') as f:
data = json.load(f)
for f in data['sources']:
yield f, mozpath.join(buildconfig.topobjdir, f)
Expand Down

0 comments on commit f0f81b0

Please sign in to comment.