aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/mail.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2016-02-25 15:38:28 -0800
committerChristopher Allan Webber <cwebber@dustycloud.org>2016-02-25 15:38:28 -0800
commit7e550fcb9da626e21e990547b9253d908391b0c7 (patch)
tree8c19bbb52e7f5d07d1a732890aeb85fe832b0ac8 /mediagoblin/tools/mail.py
parent3d78038a3c03458e78090971d9c2003df4f056f5 (diff)
downloadmediagoblin-7e550fcb9da626e21e990547b9253d908391b0c7.tar.lz
mediagoblin-7e550fcb9da626e21e990547b9253d908391b0c7.tar.xz
mediagoblin-7e550fcb9da626e21e990547b9253d908391b0c7.zip
Email debug mode on Python 3 was printing bytestring representation for subject body
There's nothing useful about seeing b'foo\nbar\nbaz' printing to stdout. That's not what the user should get!
Diffstat (limited to 'mediagoblin/tools/mail.py')
-rw-r--r--mediagoblin/tools/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/tools/mail.py b/mediagoblin/tools/mail.py
index ab3e0eaa..74e59fb3 100644
--- a/mediagoblin/tools/mail.py
+++ b/mediagoblin/tools/mail.py
@@ -137,7 +137,7 @@ def send_email(from_addr, to_addrs, subject, message_body):
print("To addresses: %s" % message['To'])
print("Subject: %s" % message['Subject'])
print("-- Body: --")
- print(message.get_payload(decode=True))
+ print(message_body)
return mhost.sendmail(from_addr, to_addrs, message.as_string())