##// END OF EJS Templates
pure: use string for exception in the pure version of base85...
marmoute -
r44081:4394687b stable
parent child Browse files
Show More
@@ -67,7 +67,7 b' def b85decode(text):'
67 acc = acc * 85 + _b85dec[c]
67 acc = acc * 85 + _b85dec[c]
68 except KeyError:
68 except KeyError:
69 raise ValueError(
69 raise ValueError(
70 b'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(b'Base85 overflow in hunk starting at byte %d' % i)
General Comments 0
You need to be logged in to leave comments. Login now