changeset 5752:84a6e463b948

patchbomb: read bundle file in binary mode
author Patrick Mezard <pmezard@gmail.com>
date Fri, 28 Dec 2007 16:41:40 +0100
parents 8a65ea986755
children ea1016b32e94
files hgext/patchbomb.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/patchbomb.py	Thu Dec 27 13:39:03 2007 +0100
+++ b/hgext/patchbomb.py	Fri Dec 28 16:41:40 2007 +0100
@@ -220,7 +220,7 @@
         tmpfn = os.path.join(tmpdir, 'bundle')
         try:
             commands.bundle(ui, repo, tmpfn, dest, **opts)
-            return open(tmpfn).read()
+            return open(tmpfn, 'rb').read()
         finally:
             try:
                 os.unlink(tmpfn)