mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100)
This commit is contained in:
parent
dff0b71343
commit
d2cd5eef0c
2 changed files with 5 additions and 2 deletions
|
@ -40,8 +40,9 @@ Py_GetBuildInfo(void)
|
|||
const char *revision = _Py_gitversion();
|
||||
const char *sep = *revision ? ":" : "";
|
||||
const char *gitid = _Py_gitidentifier();
|
||||
if (!(*gitid))
|
||||
gitid = "default";
|
||||
if (!(*gitid)) {
|
||||
gitid = "main";
|
||||
}
|
||||
PyOS_snprintf(buildinfo, sizeof(buildinfo),
|
||||
"%s%s%s, %.20s, %.9s", gitid, sep, revision,
|
||||
DATE, TIME);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue