Patchwork D2072: py3: use pycompat.bytestr to convert _b85chars to bytes

login
register
mail settings
Submitter phabricator
Date Feb. 7, 2018, 11:22 a.m.
Message ID <b6c5ac3395998ebb26641a43ff3b8698@localhost.localdomain>
Download mbox | patch
Permalink /patch/27414/
State Not Applicable
Headers show

Comments

phabricator - Feb. 7, 2018, 11:22 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG01b4d88ccb24: py3: use pycompat.bytestr to convert _b85chars to bytes (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2072?vs=5278&id=5286

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

AFFECTED FILES
  mercurial/pure/base85.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, durin42
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
@@ -9,8 +9,10 @@ 
 
 import struct
 
-_b85chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
-            "abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"
+from .. import pycompat
+
+_b85chars = pycompat.bytestr("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef"
+                             "ghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~")
 _b85chars2 = [(a + b) for a in _b85chars for b in _b85chars]
 _b85dec = {}