changeset 30611:cbc61b1b52ea

py3: use %d instead of %s for integers Python 3 returns an error if we use %s as type specifiers for integers.
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 17 Dec 2016 19:36:40 +0530
parents 66cffa87d2f2
children d623cc6b3742
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Dec 16 09:48:14 2016 -0800
+++ b/mercurial/commands.py	Sat Dec 17 19:36:40 2016 +0530
@@ -1892,7 +1892,7 @@
     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__))