# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-06-26 18:28:27 # Node ID e88fdec9cb9ebc58e217f7e591ea15afe928c1c8 # Parent 2f812b0d19364d514947f1cb6355b3b9cb69eac0 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 debugrevlog(ui, repo, file_=None, ** 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)