changeset 33107:e88fdec9cb9e

py3: use pycompat.bytestr() to convert str to bytes
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 26 Jun 2017 23:58:27 +0530
parents 2f812b0d1936
children 208de1534ebd
files mercurial/debugcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Mon Jun 26 23:57:49 2017 +0530
+++ b/mercurial/debugcommands.py	Mon Jun 26 23:58:27 2017 +0530
@@ -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)