D2460: py3: convert bytes to str using encoding.strfromlocal

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Feb 27 07:56:59 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd478c8cd89d1: py3: convert bytes to str using encoding.strfromlocal (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2460?vs=6131&id=6164

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, yuja
Cc: mercurial-devel


More information about the Mercurial-devel mailing list