diff options
author | Jeong YunWon <69878+youknowone@users.noreply.github.com> | 2021-10-20 17:09:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-20 17:09:03 (GMT) |
commit | d2cd5eef0c3fc0431bfe3fc24b4c020ebfcf8aad (patch) | |
tree | a2f6548fcc805a0243947074b37e7976ae2ff8dd /Modules/getbuildinfo.c | |
parent | dff0b713436e286bb1afdd7c6f3093c8e8db16dd (diff) | |
download | cpython-d2cd5eef0c3fc0431bfe3fc24b4c020ebfcf8aad.zip cpython-d2cd5eef0c3fc0431bfe3fc24b4c020ebfcf8aad.tar.gz cpython-d2cd5eef0c3fc0431bfe3fc24b4c020ebfcf8aad.tar.bz2 |
bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100)
Diffstat (limited to 'Modules/getbuildinfo.c')
-rw-r--r-- | Modules/getbuildinfo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c index 5f941a2..7cb7397 100644 --- a/Modules/getbuildinfo.c +++ b/Modules/getbuildinfo.c @@ -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); |