revlog: byteify a few error strings
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 12 Jun 2021 00:51:34 -0400
changeset 47414 5fbac82a8780
parent 47413 5e44936b82be
child 47415 b1b3127227be
revlog: byteify a few error strings Differential Revision: https://phab.mercurial-scm.org/D10875
mercurial/revlog.py
--- a/mercurial/revlog.py	Sat Jun 12 00:50:03 2021 -0400
+++ b/mercurial/revlog.py	Sat Jun 12 00:51:34 2021 -0400
@@ -1760,7 +1760,7 @@
         elif compression_mode == COMP_MODE_INLINE:
             return self.decompress(data)
         else:
-            msg = 'unknown compression mode %d'
+            msg = b'unknown compression mode %d'
             msg %= compression_mode
             raise error.RevlogError(msg)
 
@@ -1826,7 +1826,7 @@
                 elif comp_mode == COMP_MODE_DEFAULT:
                     ladd(def_decomp(c))
                 else:
-                    msg = 'unknown compression mode %d'
+                    msg = b'unknown compression mode %d'
                     msg %= comp_mode
                     raise error.RevlogError(msg)
 
@@ -2054,7 +2054,7 @@
         elif comp == COMP_MODE_INLINE:
             segment = self.decompress(comp_segment)
         else:
-            msg = 'unknown compression mode %d'
+            msg = b'unknown compression mode %d'
             msg %= comp
             raise error.RevlogError(msg)