Mercurial > hg
comparison mercurial/commands.py @ 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 | bd5c4320b5a8 |
children | 1112ff99d965 |
comparison
equal
deleted
inserted
replaced
30610:66cffa87d2f2 | 30611:cbc61b1b52ea |
---|---|
1890 | 1890 |
1891 # Python | 1891 # Python |
1892 fm.write('pythonexe', _("checking Python executable (%s)\n"), | 1892 fm.write('pythonexe', _("checking Python executable (%s)\n"), |
1893 sys.executable) | 1893 sys.executable) |
1894 fm.write('pythonver', _("checking Python version (%s)\n"), | 1894 fm.write('pythonver', _("checking Python version (%s)\n"), |
1895 ("%s.%s.%s" % sys.version_info[:3])) | 1895 ("%d.%d.%d" % sys.version_info[:3])) |
1896 fm.write('pythonlib', _("checking Python lib (%s)...\n"), | 1896 fm.write('pythonlib', _("checking Python lib (%s)...\n"), |
1897 os.path.dirname(os.__file__)) | 1897 os.path.dirname(os.__file__)) |
1898 | 1898 |
1899 security = set(sslutil.supportedprotocols) | 1899 security = set(sslutil.supportedprotocols) |
1900 if sslutil.hassni: | 1900 if sslutil.hassni: |