py3: pass the memoryview object into bytes() to get the value

This commit is contained in:
Pulkit Goyal 2017-06-26 23:57:49 +05:30
parent 971c41225c
commit f7889ef073

View File

@ -1818,7 +1818,7 @@ def debugrevlog(ui, repo, file_=None, **opts):
# Obtain data on the raw chunks in the revlog.
segment = r._getsegmentforrevs(rev, rev)[1]
if segment:
chunktype = segment[0]
chunktype = bytes(segment[0:1])
else:
chunktype = 'empty'