hgext/notify.py
branchstable
changeset 43329 33506cb43642
parent 43328 416041f97cc3
child 43506 9f70512ae2cf
--- a/hgext/notify.py	Thu Oct 24 15:50:15 2019 +0200
+++ b/hgext/notify.py	Thu Oct 24 16:34:43 2019 +0200
@@ -400,7 +400,7 @@
             # create fresh mime message from scratch
             # (multipart templates must take care of this themselves)
             headers = msg.items()
-            payload = msg.get_payload()
+            payload = msg.get_payload(decode=pycompat.ispy3)
             # for notification prefer readability over data precision
             msg = mail.mimeencode(self.ui, payload, self.charsets, self.test)
             # reinstate custom headers