changeset 41452:a03d20e36194

py3: use '%d' instead of '%s' for integers Differential Revision: https://phab.mercurial-scm.org/D5738
author Pulkit Goyal <pulkit@yandex-team.ru>
date Wed, 30 Jan 2019 03:49:56 +0530
parents 30dd20a56f3e
children 1a4a41d39dfc
files hgext/convert/monotone.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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')