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:
Mike Shal 2020-03-09 22:02:34 +00:00
Родитель 51a0c96b9a
Коммит c738ae638c
2 изменённых файлов: 0 добавлений и 3 удалений

Просмотреть файл

@ -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']