D2460: py3: convert bytes to str using encoding.strfromlocal
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Mon Feb 26 18:53:47 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
using encoding.strfromlocal because sender is provided from user config or
argument.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2460
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
@@ -748,7 +748,7 @@
if not parent.endswith('>'):
parent += '>'
- sender_addr = eutil.parseaddr(sender)[1]
+ sender_addr = eutil.parseaddr(encoding.strfromlocal(sender))[1]
sender = mail.addressencode(ui, sender, _charsets, opts.get('test'))
sendmail = None
firstpatch = None
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list