Skip to content
Snippets Groups Projects
Commit faed108c authored by Julien Cristau's avatar Julien Cristau
Browse files

No bug - fix client.py update_nss on python3. r=firefox-build-system-reviewers,mhentges,bbeurdouche

We're mixing str and bytes in toggle_trailing_blank_line which can only
end in sadness.

Differential Revision: https://phabricator.services.mozilla.com/D114372
parent 0f1d2e2e
No related branches found
No related tags found
1 merge request!200Draft: fixup! Bug 27476: Implement about:torconnect captive portal within Tor Browser
......@@ -62,7 +62,7 @@ def do_hg_replace(dir, repository, tag, exclusions, hg):
def toggle_trailing_blank_line(depname):
"""If the trailing line is empty, then we'll delete it.
Otherwise we'll add a blank line."""
lines = open(depname, "r").readlines()
lines = open(depname, "rb").readlines()
if not lines:
print("unexpected short file", file=sys.stderr)
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment