branch | stable |
changeset 43322 | 7d912413a3ae |
parent 43164 | c32531444cdc |
child 43326 | ef81de93143e |
--- a/hgext/notify.py Wed Oct 23 23:00:58 2019 +0100 +++ b/hgext/notify.py Thu Oct 10 13:48:30 2019 +0200 @@ -440,7 +440,7 @@ msg[r'Message-Id'] = messageid(ctx, self.domain, self.messageidseed) msg[r'To'] = encoding.strfromlocal(b', '.join(sorted(subs))) - msgtext = encoding.strtolocal(msg.as_string()) + msgtext = msg.as_bytes() if pycompat.ispy3 else msg.as_string() if self.test: self.ui.write(msgtext) if not msgtext.endswith(b'\n'):