Skip to content
Snippets Groups Projects
Commit 312afd16 authored by Augie Fackler's avatar Augie Fackler
Browse files

remotefilelog: do file IO in terms of bytes

Differential Revision: https://phab.mercurial-scm.org/D5597
parent a89b20a4
Branches
Tags
No related merge requests found
......@@ -804,7 +804,7 @@
ui.warn(_("no known cache at %s\n") % cachepath)
return
reposfile = open(repospath, 'r')
reposfile = open(repospath, 'rb')
repos = set([r[:-1] for r in reposfile.readlines()])
reposfile.close()
......@@ -874,7 +874,7 @@
# write list of valid repos back
oldumask = os.umask(0o002)
try:
reposfile = open(repospath, 'w')
reposfile = open(repospath, 'wb')
reposfile.writelines([("%s\n" % r) for r in validrepos])
reposfile.close()
finally:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment