D3957: patchbomb: python 3 really wants those email addresses in unicode
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Aug 9 23:03:00 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8919cc4f63b4: patchbomb: python 3 really wants those email addresses in unicode (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3957?vs=10193&id=10249
REVISION DETAIL
https://phab.mercurial-scm.org/D3957
AFFECTED FILES
hgext/patchbomb.py
CHANGE DETAILS
diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -818,6 +818,8 @@
generator = emailgen.Generator(_bytesgenerator(fp),
mangle_from_=False)
generator.flatten(m, 0)
- sendmail(sender_addr, to + bcc + cc, fp.getvalue())
+ alldests = to + bcc + cc
+ alldests = [encoding.strfromlocal(d) for d in alldests]
+ sendmail(sender_addr, alldests, fp.getvalue())
progress.complete()
To: durin42, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list