Bug 1618620 - Convert run_spidermonkey_checks.py to py3; r=firefox-build-system-reviewers,rstewart

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Shal 2020-02-28 00:28:36 +00:00
parent 07ad568c77
commit f91105f2f1
3 changed files with 2 additions and 3 deletions

View File

@ -320,7 +320,7 @@ def check_style(enable_fixup):
file_kind == FileKind.H or file_kind == FileKind.INL_H:
included_h_inclnames = set() # type: set(inclname)
with open(filename) as f:
with open(filename, encoding='utf-8') as f:
code = read_file(f)
if enable_fixup:

View File

@ -85,7 +85,6 @@ DIST_INSTALL = True
# running the script for no-op builds.
GeneratedFile(
'spidermonkey_checks', script='/config/run_spidermonkey_checks.py',
py2=True,
inputs=[
'!%sjs_static.%s' % (CONFIG['LIB_PREFIX'], CONFIG['LIB_SUFFIX']),
'/config/check_spidermonkey_style.py',

View File

@ -200,7 +200,7 @@ def get_opcodes(dir):
opcodes = dict()
index = []
with open('{dir}/js/src/vm/Opcodes.h'.format(dir=dir), 'r') as f:
with open('{dir}/js/src/vm/Opcodes.h'.format(dir=dir), 'r', encoding='utf-8') as f:
data = f.read()
comment_info = None