changeset 6043 | 6283316bcfd4 |
parent 6042 | 2da5b19a6460 |
parent 6038 | 36a60bd5b707 |
child 6048 | cfb4a51da7d5 |
--- 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: