changeset 4063:96863fc3036a

Open bundle files in binary mode
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 30 Jan 2007 20:37:58 -0200
parents e7282dede8cd
children 5d9ede002453
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)