D5614: fastannotate: adapt to buffer() going a way in Python 3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Jan 16 12:22:20 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdfc73c803b77: fastannotate: adapt to buffer() going a way in Python 3 (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5614?vs=13275&id=13295
REVISION DETAIL
https://phab.mercurial-scm.org/D5614
AFFECTED FILES
hgext/fastannotate/protocol.py
CHANGE DETAILS
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 @@
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 = ''
To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list