Skip to content
Snippets Groups Projects
Commit b0ff52ec9b52 authored by Patrick Mezard's avatar Patrick Mezard
Browse files

test-import: read email payload in binary mode

parent 5499dbb445de
No related branches found
No related tags found
No related merge requests found
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment