D3957: patchbomb: python 3 really wants those email addresses in unicode

Yuya Nishihara yuya at tcha.org
Tue Jul 17 09:24:28 EDT 2018


> -            sendmail(sender_addr, to + bcc + cc, fp.getvalue())
> +            alldests = to + bcc + cc
> +            alldests = [pycompat.strurl(d) for d in alldests]
> +            sendmail(sender_addr, alldests, fp.getvalue())

`encoding.strfromlocal()` to avoid unicode exception.


More information about the Mercurial-devel mailing list