[PATCH V2] mail: encode long unicode lines in emails properly (issue5687)
Yuya Nishihara
yuya at tcha.org
Tue Sep 26 14:12:14 UTC 2017
On Tue, 26 Sep 2017 16:56:53 +0300, Ippolitov Igor wrote:
> # HG changeset patch
> # User Igor Ippolitov <iippolitov at gmail.com>
> # Date 1506431697 -10800
> # Tue Sep 26 16:14:57 2017 +0300
> # Node ID 7517d15f37a7a2480e250ba8e95514534f9a48bf
> # Parent 05131c963767faaac6a66b2c658659bfbb4db29b
> mail: encode long unicode lines in emails properly (issue5687)
Queued, thanks.
> diff -r 05131c963767 -r 7517d15f37a7 mercurial/mail.py
> --- a/mercurial/mail.py Wed Sep 20 09:35:45 2017 -0700
> +++ b/mercurial/mail.py Tue Sep 26 16:14:57 2017 +0300
> @@ -216,17 +216,17 @@
> '''Return MIME message.
> Quoted-printable transfer encoding will be used if necessary.
> '''
> - enc = None
> + cs = email.charset.Charset(charset)
> + msg = email.Message.Message()
s/email.Message.Message/email.message.Message/ for future Py3 compatibility,
and adjusted the import line accordingly.
More information about the Mercurial-devel
mailing list