py3: use "%d" instead of "%s" for integers
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 11 Feb 2018 17:25:53 +0530
changeset 42376 f91b7f26c68ac87961aa6ef883ba96e5a2822ad3
parent 42375 acda1977210c451c10b40142b83930d075f8cede
child 42407 dae84ccebc570a3b07b7ae48120143d95b525255
push id682
push usergszorc@mozilla.com
push dateSun, 11 Feb 2018 22:58:07 +0000
py3: use "%d" instead of "%s" for integers Differential Revision: https://phab.mercurial-scm.org/D2135
hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -1180,17 +1180,17 @@ class queue(object):
         while True:
             if name not in self.fullseries:
                 try:
                     self.checkpatchname(name)
                     break
                 except error.Abort:
                     pass
             i += 1
-            name = '%s__%s' % (namebase, i)
+            name = '%s__%d' % (namebase, i)
         return name
 
     def checkkeepchanges(self, keepchanges, force):
         if force and keepchanges:
             raise error.Abort(_('cannot use both --force and --keep-changes'))
 
     def new(self, repo, patchfn, *pats, **opts):
         """options: