Patchwork D5614: fastannotate: adapt to buffer() going a way in Python 3

login
register
mail settings
Submitter phabricator
Date Jan. 16, 2019, 5:22 p.m.
Message ID <4e1956b23b0a4a6a10951fc8119b0839@localhost.localdomain>
Download mbox | patch
Permalink /patch/37834/
State Not Applicable
Headers show

Comments

phabricator - Jan. 16, 2019, 5:22 p.m.
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




To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

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 = ''