mercurial/pure/base85.py
changeset 8225 46293a0c7e9f
parent 7881 3ac7114c2555
child 8632 9e055cfdd620
equal deleted inserted replaced
8224:1075f5c1b3fa 8225:46293a0c7e9f
     1 # base85.py: pure python base85 codec
     1 # base85.py: pure python base85 codec
     2 #
     2 #
     3 # Copyright (C) 2009 Brendan Cully <brendan@kublai.com>
     3 # Copyright (C) 2009 Brendan Cully <brendan@kublai.com>
     4 #
     4 #
     5 # This software may be used and distributed according to the terms of
     5 # This software may be used and distributed according to the terms of the
     6 # the GNU General Public License, incorporated herein by reference.
     6 # GNU General Public License version 2, incorporated herein by reference.
     7 
     7 
     8 import struct
     8 import struct
     9 
     9 
    10 _b85chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
    10 _b85chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
    11             "abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"
    11             "abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"