hgext/fastannotate/protocol.py
changeset 41262 e40b7a504b1d
parent 39715 d8a7690ccc74
child 41264 dfc73c803b77
--- a/hgext/fastannotate/protocol.py	Wed Jan 16 11:55:01 2019 -0500
+++ b/hgext/fastannotate/protocol.py	Wed Jan 16 11:55:49 2019 -0500
@@ -98,7 +98,7 @@
     state = 0 # 0: vfspath, 1: size
     vfspath = size = ''
     while i < l:
-        ch = payload[i]
+        ch = payload[i:i + 1]
         if ch == '\0':
             if state == 1:
                 result[vfspath] = buffer(payload, i + 1, int(size))