Show More
@@ -804,7 +804,7 b' def gcclient(ui, cachepath):' | |||||
804 | ui.warn(_("no known cache at %s\n") % cachepath) |
|
804 | ui.warn(_("no known cache at %s\n") % cachepath) | |
805 | return |
|
805 | return | |
806 |
|
806 | |||
807 | reposfile = open(repospath, 'r') |
|
807 | reposfile = open(repospath, 'rb') | |
808 | repos = set([r[:-1] for r in reposfile.readlines()]) |
|
808 | repos = set([r[:-1] for r in reposfile.readlines()]) | |
809 | reposfile.close() |
|
809 | reposfile.close() | |
810 |
|
810 | |||
@@ -874,7 +874,7 b' def gcclient(ui, cachepath):' | |||||
874 | # write list of valid repos back |
|
874 | # write list of valid repos back | |
875 | oldumask = os.umask(0o002) |
|
875 | oldumask = os.umask(0o002) | |
876 | try: |
|
876 | try: | |
877 | reposfile = open(repospath, 'w') |
|
877 | reposfile = open(repospath, 'wb') | |
878 | reposfile.writelines([("%s\n" % r) for r in validrepos]) |
|
878 | reposfile.writelines([("%s\n" % r) for r in validrepos]) | |
879 | reposfile.close() |
|
879 | reposfile.close() | |
880 | finally: |
|
880 | finally: |
General Comments 0
You need to be logged in to leave comments.
Login now