From f6911d2833e7e0a6bcb9e025e64d8cc12e053d78 Mon Sep 17 00:00:00 2001 From: Pulkit Goyal <7895pulkit@gmail.com> Date: Mon, 26 Jun 2017 23:58:27 +0530 Subject: [PATCH] py3: use pycompat.bytestr() to convert str to bytes --- mercurial/debugcommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py index eeb77bc485..b65e388f91 100644 --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -1884,7 +1884,7 @@ def debugrevlog(ui, repo, file_=None, **opts): 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)