py3: use pycompat.bytestr() to convert str to bytes

This commit is contained in:
Pulkit Goyal 2017-06-26 23:58:27 +05:30
parent f7889ef073
commit f6911d2833

View File

@ -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)