# HG changeset patch # User Alexis S. L. Carvalho # Date 1170196678 7200 # Node ID 96863fc3036ab15fb04747781fab83577a4bc7db # Parent e7282dede8cd6b0a5b18a2c76e7f2a223d3d1f88 Open bundle files in binary mode diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2491,7 +2491,7 @@ def unbundle(ui, repo, fname, **opts): command. """ if os.path.exists(fname): - f = open(fname) + f = open(fname, "rb") else: f = urllib.urlopen(fname) gen = changegroup.readbundle(f, fname)