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

login
register
mail settings
Submitter phabricator
Date Feb. 14, 2018, 1:43 p.m.
Message ID <4f9f2c22970362e0e5712203920f4028@localhost.localdomain>
Download mbox | patch
Permalink /patch/27921/
State Not Applicable
Headers show

Comments

phabricator - Feb. 14, 2018, 1:43 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG80301c90a2dc: py3: converts bytes to pycompat.bytestr to get bytechrs while enumerating (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2270?vs=5710&id=5723

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: