Show More
@@ -54,9 +54,10 b' def b85decode(text):' | |||||
54 | try: |
|
54 | try: | |
55 | acc = acc * 85 + _b85dec[c] |
|
55 | acc = acc * 85 + _b85dec[c] | |
56 | except KeyError: |
|
56 | except KeyError: | |
57 |
raise |
|
57 | raise ValueError('bad base85 character at position %d' | |
|
58 | % (i + j)) | |||
58 | if acc > 4294967295: |
|
59 | if acc > 4294967295: | |
59 |
raise |
|
60 | raise ValueError('Base85 overflow in hunk starting at byte %d' % i) | |
60 | out.append(acc) |
|
61 | out.append(acc) | |
61 |
|
62 | |||
62 | # Pad final chunk if necessary |
|
63 | # Pad final chunk if necessary |
@@ -496,9 +496,6 b'' | |||||
496 | mercurial/patch.py:0: |
|
496 | mercurial/patch.py:0: | |
497 | > except: |
|
497 | > except: | |
498 | warning: naked except clause |
|
498 | warning: naked except clause | |
499 | mercurial/pure/base85.py:0: |
|
|||
500 | > raise OverflowError('Base85 overflow in hunk starting at byte %d' % i) |
|
|||
501 | warning: line over 80 characters |
|
|||
502 | mercurial/pure/mpatch.py:0: |
|
499 | mercurial/pure/mpatch.py:0: | |
503 | > frags.extend(reversed(new)) # what was left at the end |
|
500 | > frags.extend(reversed(new)) # what was left at the end | |
504 | warning: line over 80 characters |
|
501 | warning: line over 80 characters |
General Comments 0
You need to be logged in to leave comments.
Login now