changeset 47414:5fbac82a8780

revlog: byteify a few error strings Differential Revision: https://phab.mercurial-scm.org/D10875
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 12 Jun 2021 00:51:34 -0400
parents 5e44936b82be
children b1b3127227be
files mercurial/revlog.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)