diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-10-20 10:41:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-20 10:41:35 -0700 |
| commit | 696a89fef81f8229ebff9c32dfd36921c04f0890 (patch) | |
| tree | 5a3940793f6b32ba0dea473d7e75450159877126 /Modules | |
| parent | 65de808811f93793599209f74bb1bab3ad399b17 (diff) | |
| download | cpython-git-696a89fef81f8229ebff9c32dfd36921c04f0890.tar.gz | |
bpo-45532: Replace 'default' with 'main' as default in sys.version (GH-29100)
(cherry picked from commit d2cd5eef0c3fc0431bfe3fc24b4c020ebfcf8aad)
Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
Diffstat (limited to 'Modules')
| -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 5f941a26e1..7cb7397a22 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); |
