mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
py3: use pycompat.bytestr() to convert str to bytes
This commit is contained in:
parent
f7889ef073
commit
f6911d2833
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user