Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Dec 20 00:02:24 2016 +0530 +++ b/mercurial/commands.py Tue Dec 20 00:20:07 2016 +0530 @@ -1889,7 +1889,7 @@ # Python fm.write('pythonexe', _("checking Python executable (%s)\n"), - sys.executable) + pycompat.sysexecutable) fm.write('pythonver', _("checking Python version (%s)\n"), ("%d.%d.%d" % sys.version_info[:3])) fm.write('pythonlib', _("checking Python lib (%s)...\n"),