##// END OF EJS Templates
sigpipe-remote: display more information about the non-py3 python...
marmoute -
r48437:d0c0d7b9 default
parent child Browse files
Show More
@@ -10,7 +10,10 b' import time'
10 # we cannot use mercurial.testing as long as python2 is not dropped as the test
10 # we cannot use mercurial.testing as long as python2 is not dropped as the test
11 # will only install the mercurial module for python2 in python2 run
11 # will only install the mercurial module for python2 in python2 run
12 if sys.version_info[0] < 3:
12 if sys.version_info[0] < 3:
13 ver = '.'.join(str(x) for x in sys.version_info)
14 exe = sys.executable
13 print('SIGPIPE-HELPER: script should run with Python 3', file=sys.stderr)
15 print('SIGPIPE-HELPER: script should run with Python 3', file=sys.stderr)
16 print('SIGPIPE-HELPER: %s is running %s' % (exe, ver), file=sys.stderr)
14 sys.exit(255)
17 sys.exit(255)
15
18
16 if isinstance(sys.stdout.buffer, io.BufferedWriter):
19 if isinstance(sys.stdout.buffer, io.BufferedWriter):
General Comments 0
You need to be logged in to leave comments. Login now