From patchwork Mon Jun 26 19:55:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [8,of,8] py3: use pycompat.bytestr() to convert str to bytes From: Pulkit Goyal <7895pulkit@gmail.com> X-Patchwork-Id: 21749 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Tue, 27 Jun 2017 01:25:29 +0530 # HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1498501707 -19800 # Mon Jun 26 23:58:27 2017 +0530 # Node ID f4f483472ca87678a006a8224a5e14495ed7f889 # Parent e53b2097c1368e99088dc573225dd02b05dc5b0f py3: use pycompat.bytestr() to convert str to bytes diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -1884,7 +1884,7 @@ def fmtchunktype(chunktype): if chunktype == 'empty': return ' %s : ' % chunktype - elif chunktype in string.ascii_letters: + elif chunktype in pycompat.bytestr(string.ascii_letters): return ' 0x%s (%s) : ' % (hex(chunktype), chunktype) else: return ' 0x%s : ' % hex(chunktype)