Patchwork D2270: py3: converts bytes to pycompat.bytestr to get bytechrs while enumerating

login
register
mail settings
Submitter phabricator
Date Feb. 14, 2018, 12:36 p.m.
Message ID <differential-rev-PHID-DREV-akjcos5jminudyqk3pln-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/27904/
State Superseded
Headers show

Comments

phabricator - Feb. 14, 2018, 12:36 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2270

AFFECTED FILES
  mercurial/pure/base85.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/pure/base85.py b/mercurial/pure/base85.py
--- a/mercurial/pure/base85.py
+++ b/mercurial/pure/base85.py
@@ -53,6 +53,7 @@ 
     out = []
     for i in range(0, len(text), 5):
         chunk = text[i:i + 5]
+        chunk = pycompat.bytestr(chunk)
         acc = 0
         for j, c in enumerate(chunk):
             try: