changeset 51814:f1ef512e14ab

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 20 Aug 2024 17:46:17 -0400
parents 54b1a3738530
children 460e80488cf0
files hgext/convert/monotone.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
             )