diff hgext/mq.py @ 6043:6283316bcfd4

Merge with crew
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 06 Feb 2008 20:00:35 -0800
parents 2da5b19a6460 36a60bd5b707
children cfb4a51da7d5
line wrap: on
line diff
--- a/hgext/mq.py	Wed Feb 06 19:57:52 2008 -0800
+++ b/hgext/mq.py	Wed Feb 06 20:00:35 2008 -0800
@@ -1456,7 +1456,7 @@
                             raise util.Abort(_('need --name to import a patch from -'))
                         text = sys.stdin.read()
                     else:
-                        text = file(filename).read()
+                        text = file(filename, 'rb').read()
                 except IOError:
                     raise util.Abort(_("unable to read %s") % patchname)
                 if not patchname: