bpo-38343: Fixes version handling for nuget packages (GH-16527)

This commit is contained in:
Steve Dower 2019-10-01 16:42:24 -07:00 committed by GitHub
parent 6314abcc08
commit b9a8b8296c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 ""