Mercurial > public > mercurial-scm > hg-stable
diff mercurial/chgserver.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 | a3f335d1247c |
children | dd897eb1699e |
line wrap: on
line diff
--- a/mercurial/chgserver.py Tue Dec 20 00:02:24 2016 +0530 +++ b/mercurial/chgserver.py Tue Dec 20 00:20:07 2016 +0530 @@ -47,7 +47,6 @@ import re import signal import struct -import sys import time from .i18n import _ @@ -59,6 +58,7 @@ error, extensions, osutil, + pycompat, util, ) @@ -122,7 +122,7 @@ modules.append(__version__) except ImportError: pass - files = [sys.executable] + files = [pycompat.sysexecutable] for m in modules: try: files.append(inspect.getabsfile(m))