hgext/patchbomb.py
changeset 5752 84a6e463b948
parent 5643 eae4553b2763
child 5753 ea1016b32e94
--- 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)