From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 2 Oct 2019 00:00:49 +0000 (-0700) Subject: bpo-38343: Fixes version handling for nuget packages (GH-16527) X-Git-Tag: v3.8.0~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a11df75269b5d47248be617ed02e96c1d1938fd1;p=python bpo-38343: Fixes version handling for nuget packages (GH-16527) (cherry picked from commit b9a8b8296cd7be22f8b5bf92af686a788c47c7bf) Co-authored-by: Steve Dower --- diff --git a/PC/layout/support/constants.py b/PC/layout/support/constants.py index 88ea410b34..d76fa3bbf3 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 ""