monotone: replace %s interpolation with appropriate numeric specifiers
The length is an int, and the version is a float. Neither work with bytes on
py3. This was noticed when looking at nearby code after updating pytype changed
some signatures.
--- a/hgext/convert/monotone.py Tue Aug 20 16:32:13 2024 -0400
+++ b/hgext/convert/monotone.py Tue Aug 20 17:46:17 2024 -0400
@@ -160,7 +160,7 @@
raise error.Abort(
_(
b"bad mtn packet - unable to read full packet "
- b"read %s of %s"
+ b"read %s of %d"
)
% (len(read), length)
)
@@ -398,7 +398,7 @@
)
else:
self.ui.debug(
- b"mtn automate version %s - not using automate stdio "
+ b"mtn automate version %f - not using automate stdio "
b"(automate >= 12.0 - mtn >= 0.46 is needed)\n" % version
)