changeset 36229:80301c90a2dc

py3: converts bytes to pycompat.bytestr to get bytechrs while enumerating Differential Revision: https://phab.mercurial-scm.org/D2270
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 14 Feb 2018 17:44:19 +0530
parents 7fda2a8ed24e
children eb91ffdaaece
files mercurial/pure/base85.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: