monotone: replace %s interpolation with appropriate numeric specifiers
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 20 Aug 2024 17:46:17 -0400
changeset 51814 f1ef512e14ab
parent 51813 54b1a3738530
child 51815 460e80488cf0
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.
hgext/convert/monotone.py
--- 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
             )