Open bundle files in binary mode
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 30 Jan 2007 20:37:58 -0200
changeset 4063 96863fc3036a
parent 4058 e7282dede8cd
child 4064 5d9ede002453
Open bundle files in binary mode
mercurial/commands.py
--- a/mercurial/commands.py	Tue Jan 30 19:09:08 2007 -0200
+++ b/mercurial/commands.py	Tue Jan 30 20:37:58 2007 -0200
@@ -2491,7 +2491,7 @@
     command.
     """
     if os.path.exists(fname):
-        f = open(fname)
+        f = open(fname, "rb")
     else:
         f = urllib.urlopen(fname)
     gen = changegroup.readbundle(f, fname)