diff options
author | Steve Dower <steve.dower@python.org> | 2019-10-01 23:42:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 23:42:24 (GMT) |
commit | b9a8b8296cd7be22f8b5bf92af686a788c47c7bf (patch) | |
tree | ea1653e35c99ad8095d435e754a8ce61ff7b273a /PC | |
parent | 6314abcc08f5d0f3d3a915dc9455ea223fa65517 (diff) | |
download | cpython-b9a8b8296cd7be22f8b5bf92af686a788c47c7bf.zip cpython-b9a8b8296cd7be22f8b5bf92af686a788c47c7bf.tar.gz cpython-b9a8b8296cd7be22f8b5bf92af686a788c47c7bf.tar.bz2 |
bpo-38343: Fixes version handling for nuget packages (GH-16527)
Diffstat (limited to 'PC')
-rw-r--r-- | PC/layout/support/constants.py | 2 |
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 "" |