revlog: byteify a few error strings
Differential Revision: https://phab.mercurial-scm.org/D10875
--- 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)