hgext/fastannotate/protocol.py
changeset 41264 dfc73c803b77
parent 41262 e40b7a504b1d
child 41365 876494fd967d
--- a/hgext/fastannotate/protocol.py	Wed Jan 16 11:56:08 2019 -0500
+++ b/hgext/fastannotate/protocol.py	Wed Jan 16 11:56:43 2019 -0500
@@ -101,7 +101,7 @@
         ch = payload[i:i + 1]
         if ch == '\0':
             if state == 1:
-                result[vfspath] = buffer(payload, i + 1, int(size))
+                result[vfspath] = payload[i + 1:i + 1 + int(size)]
                 i += int(size)
                 state = 0
                 vfspath = size = ''