mercurial/pure/base85.py
changeset 35944 01b4d88ccb24
parent 27334 9007f697e8ef
child 36191 80301c90a2dc
equal deleted inserted replaced
35943:bdb6ec909878 35944:01b4d88ccb24
     7 
     7 
     8 from __future__ import absolute_import
     8 from __future__ import absolute_import
     9 
     9 
    10 import struct
    10 import struct
    11 
    11 
    12 _b85chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
    12 from .. import pycompat
    13             "abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"
    13 
       
    14 _b85chars = pycompat.bytestr("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef"
       
    15                              "ghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~")
    14 _b85chars2 = [(a + b) for a in _b85chars for b in _b85chars]
    16 _b85chars2 = [(a + b) for a in _b85chars for b in _b85chars]
    15 _b85dec = {}
    17 _b85dec = {}
    16 
    18 
    17 def _mkb85dec():
    19 def _mkb85dec():
    18     for i, c in enumerate(_b85chars):
    20     for i, c in enumerate(_b85chars):