pure: use string for another exception in the pure version of base85 stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 16 Nov 2019 20:08:35 +0100
branchstable
changeset 43667 4cd911040ba5
parent 43666 4394687b298b
child 43668 53607fd3ec6c
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.
mercurial/pure/base85.py
--- a/mercurial/pure/base85.py	Sat Nov 16 20:07:49 2019 +0100
+++ b/mercurial/pure/base85.py	Sat Nov 16 20:08:35 2019 +0100
@@ -70,7 +70,7 @@
                     'bad base85 character at position %d' % (i + j)
                 )
         if acc > 4294967295:
-            raise ValueError(b'Base85 overflow in hunk starting at byte %d' % i)
+            raise ValueError('Base85 overflow in hunk starting at byte %d' % i)
         out.append(acc)
 
     # Pad final chunk if necessary