summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2024-10-01 09:43:55 (GMT)
committerGitHub <noreply@github.com>2024-10-01 09:43:55 (GMT)
commit91e64be731fe42e6b252b95d79d900251388bfc6 (patch)
treee4bffef2953a2f816c9ddf92914e2d51ce63d50a /Doc/tools
parent4129a74a3772a2fa75a3b8f642f6b4cf18520e0e (diff)
downloadcpython-91e64be731fe42e6b252b95d79d900251388bfc6.zip
cpython-91e64be731fe42e6b252b95d79d900251388bfc6.tar.gz
cpython-91e64be731fe42e6b252b95d79d900251388bfc6.tar.bz2
Doc: Fix archive filenames for standard builds (#124826)
Diffstat (limited to 'Doc/tools')
-rw-r--r--Doc/tools/extensions/patchlevel.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/tools/extensions/patchlevel.py b/Doc/tools/extensions/patchlevel.py
index 53ea1bf..9ccaec3 100644
--- a/Doc/tools/extensions/patchlevel.py
+++ b/Doc/tools/extensions/patchlevel.py
@@ -74,4 +74,8 @@ def get_version_info():
if __name__ == "__main__":
- print(format_version_info(get_header_version_info())[0])
+ short_ver, full_ver = format_version_info(get_header_version_info())
+ if sys.argv[1:2] == ["--short"]:
+ print(short_ver)
+ else:
+ print(full_ver)