# HG changeset patch # User Augie Fackler # Date 2019-01-16 16:56:43 # Node ID dfc73c803b77dd3d50bee8bf7952eab07d6f66f4 # Parent c2f62720e37d8fa3476387dfdd9b215653435b6a fastannotate: adapt to buffer() going a way in Python 3 There's probably something more efficient I could do here, but I'm disinclined to spend much time on this at the moment. Differential Revision: https://phab.mercurial-scm.org/D5614 diff --git a/hgext/fastannotate/protocol.py b/hgext/fastannotate/protocol.py --- a/hgext/fastannotate/protocol.py +++ b/hgext/fastannotate/protocol.py @@ -101,7 +101,7 @@ def _parseresponse(payload): 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 = ''