py3: converts bytes to pycompat.bytestr to get bytechrs while enumerating
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 14 Feb 2018 17:44:19 +0530
changeset 36191 80301c90a2dc
parent 36190 7fda2a8ed24e
child 36192 eb91ffdaaece
py3: converts bytes to pycompat.bytestr to get bytechrs while enumerating Differential Revision: https://phab.mercurial-scm.org/D2270
mercurial/pure/base85.py
--- a/mercurial/pure/base85.py	Wed Feb 14 17:42:14 2018 +0530
+++ b/mercurial/pure/base85.py	Wed Feb 14 17:44:19 2018 +0530
@@ -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: