Mercurial > hg
changeset 5530:b0ff52ec9b52
test-import: read email payload in binary mode
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 10 Nov 2007 21:30:43 +0100 |
parents | 5499dbb445de |
children | a3fe91b4f6eb |
files | tests/test-import |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-import Sat Nov 10 17:09:56 2007 +0100 +++ b/tests/test-import Sat Nov 10 21:30:43 2007 +0100 @@ -57,7 +57,7 @@ cat > mkmsg.py <<EOF import email.Message, sys msg = email.Message.Message() -msg.set_payload('email commit message\n' + open('tip.patch').read()) +msg.set_payload('email commit message\n' + open('tip.patch', 'rb').read()) msg['Subject'] = 'email patch' msg['From'] = 'email patcher' sys.stdout.write(msg.as_string())