Skip to content

Commit

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

Differential Revision: https://phabricator.services.mozilla.com/D65851
  • Loading branch information
mshal committed Mar 9, 2020
1 parent e5c85b9 commit 7cceeec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions netwerk/dns/prepare_tlds.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ def dafsa_words():

""" 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()))
Expand Down
1 change: 0 additions & 1 deletion netwerk/dns/tests/unit/data/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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']

0 comments on commit 7cceeec

Please sign in to comment.