mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 15:55:16 +00:00
Bug 1620744 - Convert prepare_tlds.py to py3; r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D65851 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
97e7eee790
commit
dc0f12b8f8
@ -126,8 +126,6 @@ def main(output, effective_tld_filename, output_format="cxx"):
|
||||
|
||||
""" words_to_bin() returns a bytes while words_to_cxx() returns string """
|
||||
if output_format == "bin":
|
||||
if sys.version_info[0] >= 3:
|
||||
output = output.buffer
|
||||
output.write(words_to_bin(dafsa_words()))
|
||||
else:
|
||||
output.write(words_to_cxx(dafsa_words()))
|
||||
|
@ -10,6 +10,5 @@ fake_remote_dafsa = GENERATED_FILES['fake_remote_dafsa.bin']
|
||||
fake_remote_dafsa.script = '../../../prepare_tlds.py'
|
||||
fake_remote_dafsa.inputs = ['fake_public_suffix_list.dat']
|
||||
fake_remote_dafsa.flags = ['bin']
|
||||
fake_remote_dafsa.py2 = True
|
||||
|
||||
TEST_HARNESS_FILES.xpcshell.netwerk.dns.tests.unit.data += ['!fake_remote_dafsa.bin']
|
||||
|
Loading…
x
Reference in New Issue
Block a user