mercurial/pure/base85.py
branchstable
changeset 43667 4cd911040ba5
parent 43666 4394687b298b
child 48875 6000f5b25c9b
equal deleted inserted replaced
43666:4394687b298b 43667:4cd911040ba5
    68             except KeyError:
    68             except KeyError:
    69                 raise ValueError(
    69                 raise ValueError(
    70                     'bad base85 character at position %d' % (i + j)
    70                     'bad base85 character at position %d' % (i + j)
    71                 )
    71                 )
    72         if acc > 4294967295:
    72         if acc > 4294967295:
    73             raise ValueError(b'Base85 overflow in hunk starting at byte %d' % i)
    73             raise ValueError('Base85 overflow in hunk starting at byte %d' % i)
    74         out.append(acc)
    74         out.append(acc)
    75 
    75 
    76     # Pad final chunk if necessary
    76     # Pad final chunk if necessary
    77     cl = l % 5
    77     cl = l % 5
    78     if cl:
    78     if cl: