Skip to content
Snippets Groups Projects
Commit d478c8cd authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

py3: convert bytes to str using encoding.strfromlocal

using encoding.strfromlocal because sender is provided from user config or
argument.

Differential Revision: https://phab.mercurial-scm.org/D2460
parent a918c996
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment