Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 44230:0b475b0b0344
debugcommands: add Python implementation to debuginstall
This seems like a useful detail to print.
Differential Revision: https://phab.mercurial-scm.org/D7979
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 22 Nov 2019 20:27:09 -0800 |
parents | 52f8b07ad2f9 |
children | d8b53385b1bc |
comparison
equal
deleted
inserted
replaced
44229:bd0de73cf810 | 44230:0b475b0b0344 |
---|---|
11 import collections | 11 import collections |
12 import difflib | 12 import difflib |
13 import errno | 13 import errno |
14 import operator | 14 import operator |
15 import os | 15 import os |
16 import platform | |
16 import random | 17 import random |
17 import re | 18 import re |
18 import socket | 19 import socket |
19 import ssl | 20 import ssl |
20 import stat | 21 import stat |
1485 b'pythonexe', | 1486 b'pythonexe', |
1486 _(b"checking Python executable (%s)\n"), | 1487 _(b"checking Python executable (%s)\n"), |
1487 pycompat.sysexecutable or _(b"unknown"), | 1488 pycompat.sysexecutable or _(b"unknown"), |
1488 ) | 1489 ) |
1489 fm.write( | 1490 fm.write( |
1491 b'pythonimplementation', | |
1492 _(b"checking Python implementation (%s)\n"), | |
1493 pycompat.sysbytes(platform.python_implementation()), | |
1494 ) | |
1495 fm.write( | |
1490 b'pythonver', | 1496 b'pythonver', |
1491 _(b"checking Python version (%s)\n"), | 1497 _(b"checking Python version (%s)\n"), |
1492 (b"%d.%d.%d" % sys.version_info[:3]), | 1498 (b"%d.%d.%d" % sys.version_info[:3]), |
1493 ) | 1499 ) |
1494 fm.write( | 1500 fm.write( |