# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2016-12-17 14:06:40 # Node ID cbc61b1b52ea71aef04e8f9d36d014cd8c1be683 # Parent 66cffa87d2f2292d1d0475cc9eaa13318d54f0f5 py3: use %d instead of %s for integers Python 3 returns an error if we use %s as type specifiers for integers. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1892,7 +1892,7 @@ def debuginstall(ui, **opts): fm.write('pythonexe', _("checking Python executable (%s)\n"), sys.executable) fm.write('pythonver', _("checking Python version (%s)\n"), - ("%s.%s.%s" % sys.version_info[:3])) + ("%d.%d.%d" % sys.version_info[:3])) fm.write('pythonlib', _("checking Python lib (%s)...\n"), os.path.dirname(os.__file__))