mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
py3: pass the memoryview object into bytes() to get the value
This commit is contained in:
parent
971c41225c
commit
f7889ef073
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user