Mercurial > hg
changeset 41264:dfc73c803b77
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 16 Jan 2019 11:56:43 -0500 |
parents | c2f62720e37d |
children | 433c736f6f1c |
files | hgext/fastannotate/protocol.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 = ''