summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-10-02 00:00:49 (GMT)
committerGitHub <noreply@github.com>2019-10-02 00:00:49 (GMT)
commita11df75269b5d47248be617ed02e96c1d1938fd1 (patch)
tree4c72cecb3c87f09b0322d0edd0bf212a809e34b7
parentc4976a60956627a5b256b7929e9ad04e1ea101ec (diff)
downloadcpython-a11df75269b5d47248be617ed02e96c1d1938fd1.zip
cpython-a11df75269b5d47248be617ed02e96c1d1938fd1.tar.gz
cpython-a11df75269b5d47248be617ed02e96c1d1938fd1.tar.bz2
bpo-38343: Fixes version handling for nuget packages (GH-16527)
(cherry picked from commit b9a8b8296cd7be22f8b5bf92af686a788c47c7bf) Co-authored-by: Steve Dower <steve.dower@python.org>
-rw-r--r--PC/layout/support/constants.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/layout/support/constants.py b/PC/layout/support/constants.py
index 88ea410..d76fa3b 100644
--- a/PC/layout/support/constants.py
+++ b/PC/layout/support/constants.py
@@ -10,7 +10,7 @@ import sys
VER_MAJOR, VER_MINOR, VER_MICRO, VER_FIELD4 = struct.pack(">i", sys.hexversion)
VER_FIELD3 = VER_MICRO << 8 | VER_FIELD4
-VER_NAME = {"alpha": "a", "beta": "b", "rc": "rc"}.get(
+VER_NAME = {"alpha": "a", "beta": "b", "candidate": "rc"}.get(
sys.version_info.releaselevel, ""
)
VER_SERIAL = sys.version_info.serial if VER_NAME else ""