mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Merge build identification to default branch.
This commit is contained in:
commit
fe09a54280
8 changed files with 659 additions and 495 deletions
|
@ -1311,7 +1311,9 @@ def _sys_version(sys_version=None):
|
|||
name = 'CPython'
|
||||
builddate = builddate + ' ' + buildtime
|
||||
|
||||
if hasattr(sys, 'subversion'):
|
||||
if hasattr(sys, '_mercurial'):
|
||||
_, branch, revision = sys._mercurial
|
||||
elif hasattr(sys, 'subversion'):
|
||||
# sys.subversion was added in Python 2.5
|
||||
_, branch, revision = sys.subversion
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue