Mercurial > hg
comparison mercurial/pure/base85.py @ 43667:4cd911040ba5 stable
pure: use string for another exception in the pure version of base85
That message does not seems tested, but I am assuming that the same reasoning as
for the previous changeset applies.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 16 Nov 2019 20:08:35 +0100 |
parents | 4394687b298b |
children | 6000f5b25c9b |
comparison
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: |