lock: delay is numeric, use %d for formatting
authorAugie Fackler <augie@google.com>
Sun, 18 Feb 2018 15:38:29 -0500
changeset 36319 c303eda316be
parent 36318 3f67c56a5fd7
child 36320 9d12416a1593
lock: delay is numeric, use %d for formatting Differential Revision: https://phab.mercurial-scm.org/D2347
mercurial/lock.py
--- a/mercurial/lock.py	Sun Feb 18 15:23:26 2018 -0500
+++ b/mercurial/lock.py	Sun Feb 18 15:38:29 2018 -0500
@@ -84,9 +84,9 @@
     l.delay = delay
     if l.delay:
         if 0 <= warningidx <= l.delay:
-            ui.warn(_("got lock after %s seconds\n") % l.delay)
+            ui.warn(_("got lock after %d seconds\n") % l.delay)
         else:
-            ui.debug("got lock after %s seconds\n" % l.delay)
+            ui.debug("got lock after %d seconds\n" % l.delay)
     if l.acquirefn:
         l.acquirefn()
     return l