Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 30672:10b17ed9b591
py3: replace sys.executable with pycompat.sysexecutable
sys.executable returns unicodes on Python 3. This patch replaces occurences of
sys.executable with pycompat.sysexecutable.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 20 Dec 2016 00:20:07 +0530 |
parents | 16b5df5792a8 |
children | caf7e1c5efe4 |
comparison
equal
deleted
inserted
replaced
30671:3fcaf0f660ce | 30672:10b17ed9b591 |
---|---|
1887 fm.condwrite(err, 'encodingerror', _(" %s\n" | 1887 fm.condwrite(err, 'encodingerror', _(" %s\n" |
1888 " (check that your locale is properly set)\n"), err) | 1888 " (check that your locale is properly set)\n"), err) |
1889 | 1889 |
1890 # Python | 1890 # Python |
1891 fm.write('pythonexe', _("checking Python executable (%s)\n"), | 1891 fm.write('pythonexe', _("checking Python executable (%s)\n"), |
1892 sys.executable) | 1892 pycompat.sysexecutable) |
1893 fm.write('pythonver', _("checking Python version (%s)\n"), | 1893 fm.write('pythonver', _("checking Python version (%s)\n"), |
1894 ("%d.%d.%d" % sys.version_info[:3])) | 1894 ("%d.%d.%d" % sys.version_info[:3])) |
1895 fm.write('pythonlib', _("checking Python lib (%s)...\n"), | 1895 fm.write('pythonlib', _("checking Python lib (%s)...\n"), |
1896 os.path.dirname(os.__file__)) | 1896 os.path.dirname(os.__file__)) |
1897 | 1897 |