diff hgext/convert/monotone.py @ 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 876494fd967d
children 210a999bd668
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')