##// END OF EJS Templates
remotefilelog: do file IO in terms of bytes...
Augie Fackler -
r41284:312afd16 default
parent child Browse files
Show More
@@ -804,7 +804,7 def gcclient(ui, cachepath):
804 804 ui.warn(_("no known cache at %s\n") % cachepath)
805 805 return
806 806
807 reposfile = open(repospath, 'r')
807 reposfile = open(repospath, 'rb')
808 808 repos = set([r[:-1] for r in reposfile.readlines()])
809 809 reposfile.close()
810 810
@@ -874,7 +874,7 def gcclient(ui, cachepath):
874 874 # write list of valid repos back
875 875 oldumask = os.umask(0o002)
876 876 try:
877 reposfile = open(repospath, 'w')
877 reposfile = open(repospath, 'wb')
878 878 reposfile.writelines([("%s\n" % r) for r in validrepos])
879 879 reposfile.close()
880 880 finally:
General Comments 0
You need to be logged in to leave comments. Login now