changeset 36429:a24c57f1f5c3

py3: use '%d' for integers instead of '%s' Differential Revision: https://phab.mercurial-scm.org/D2419
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 24 Feb 2018 16:16:14 +0530
parents eb73f8a6177e
children 7b86aa31b004
files mercurial/debugcommands.py mercurial/tags.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Sat Feb 24 17:49:10 2018 -0600
+++ b/mercurial/debugcommands.py	Sat Feb 24 16:16:14 2018 +0530
@@ -560,7 +560,7 @@
         d = util.parsedate(date, util.extendeddateformats)
     else:
         d = util.parsedate(date)
-    ui.write(("internal: %s %s\n") % d)
+    ui.write(("internal: %d %d\n") % d)
     ui.write(("standard: %s\n") % util.datestr(d))
     if range:
         m = util.matchdate(range)
--- a/mercurial/tags.py	Sat Feb 24 17:49:10 2018 -0600
+++ b/mercurial/tags.py	Sat Feb 24 16:16:14 2018 +0530
@@ -276,7 +276,7 @@
     count = 0
 
     def dbg(msg):
-        ui.debug("%s, line %s: %s\n" % (fn, count, msg))
+        ui.debug("%s, line %d: %s\n" % (fn, count, msg))
 
     for nline, line in enumerate(lines):
         count += 1