##// END OF EJS Templates
revlog: avoid string slice when decompressing u* chunks...
Gregory Szorc -
r27475:a2e2a8fa default
parent child Browse files
Show More
@@ -110,7 +110,7 def decompress(bin):
110 except zlib.error as e:
110 except zlib.error as e:
111 raise RevlogError(_("revlog decompress error: %s") % str(e))
111 raise RevlogError(_("revlog decompress error: %s") % str(e))
112 if t == 'u':
112 if t == 'u':
113 return bin[1:]
113 return util.buffer(bin, 1)
114 raise RevlogError(_("unknown compression type %r") % t)
114 raise RevlogError(_("unknown compression type %r") % t)
115
115
116 # index v0:
116 # index v0:
General Comments 0
You need to be logged in to leave comments. Login now