py3: use '%d' instead of '%s' for integers
authorPulkit Goyal <pulkit@yandex-team.ru>
Wed, 30 Jan 2019 03:49:56 +0530
changeset 41452 a03d20e36194
parent 41451 30dd20a56f3e
child 41453 1a4a41d39dfc
py3: use '%d' instead of '%s' for integers Differential Revision: https://phab.mercurial-scm.org/D5738
hgext/convert/monotone.py
--- a/hgext/convert/monotone.py	Tue Jan 29 13:26:18 2019 -0500
+++ b/hgext/convert/monotone.py	Wed Jan 30 03:49:56 2019 +0530
@@ -93,9 +93,9 @@
         kwargs = pycompat.byteskwargs(kwargs)
         command = []
         for k, v in kwargs.iteritems():
-            command.append("%s:%s" % (len(k), k))
+            command.append("%d:%s" % (len(k), k))
             if v:
-                command.append("%s:%s" % (len(v), v))
+                command.append("%d:%s" % (len(v), v))
         if command:
             command.insert(0, 'o')
             command.append('e')