mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1620744
- Convert generate_mapfile.py to py3; r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D65854 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
419f244300
commit
091526302b
@ -94,7 +94,6 @@ def handle_actions(actions, context, action_overrides):
|
||||
g = context['GENERATED_FILES'][output]
|
||||
g.script = action_overrides[name]
|
||||
g.inputs = action['inputs']
|
||||
g.py2 = True
|
||||
|
||||
|
||||
def handle_copies(copies, context):
|
||||
|
@ -25,7 +25,7 @@ def main(output, input):
|
||||
is_mingw = "WINNT" == buildconfig.substs['OS_ARCH'] and \
|
||||
buildconfig.substs.get('GCC_USE_GNU_LD')
|
||||
|
||||
with open(input, 'rb') as f:
|
||||
with open(input, 'r', encoding='utf-8') as f:
|
||||
for line in f:
|
||||
line = line.rstrip()
|
||||
# On everything except MinGW, remove all lines containing ';-'
|
||||
|
Loading…
Reference in New Issue
Block a user