From patchwork Tue Feb 13 02:48:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2167: py3: cast character set to bytes From: phabricator X-Patchwork-Id: 27768 Message-Id: <5e1a6f299408794a5626011116ec58e6@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Tue, 13 Feb 2018 02:48:03 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG6ea7f1c10c81: py3: cast character set to bytes (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2167?vs=5468&id=5590 REVISION DETAIL https://phab.mercurial-scm.org/D2167 AFFECTED FILES mercurial/mail.py CHANGE DETAILS To: indygreg, #hg-reviewers, pulkit, durin42 Cc: mercurial-devel diff --git a/mercurial/mail.py b/mercurial/mail.py --- a/mercurial/mail.py +++ b/mercurial/mail.py @@ -187,7 +187,7 @@ def codec2iana(cs): '''''' - cs = email.charset.Charset(cs).input_charset.lower() + cs = pycompat.sysbytes(email.charset.Charset(cs).input_charset.lower()) # "latin1" normalizes to "iso8859-1", standard calls for "iso-8859-1" if cs.startswith("iso") and not cs.startswith("iso-"):