comparison 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
comparison
equal deleted inserted replaced
41451:30dd20a56f3e 41452:a03d20e36194
91 def mtnrunstdio(self, *args, **kwargs): 91 def mtnrunstdio(self, *args, **kwargs):
92 # Prepare the command in automate stdio format 92 # Prepare the command in automate stdio format
93 kwargs = pycompat.byteskwargs(kwargs) 93 kwargs = pycompat.byteskwargs(kwargs)
94 command = [] 94 command = []
95 for k, v in kwargs.iteritems(): 95 for k, v in kwargs.iteritems():
96 command.append("%s:%s" % (len(k), k)) 96 command.append("%d:%s" % (len(k), k))
97 if v: 97 if v:
98 command.append("%s:%s" % (len(v), v)) 98 command.append("%d:%s" % (len(v), v))
99 if command: 99 if command:
100 command.insert(0, 'o') 100 command.insert(0, 'o')
101 command.append('e') 101 command.append('e')
102 102
103 command.append('l') 103 command.append('l')