[Python-checkins] bpo-39012: Fix RC version suffix for nuget release files (GH-17564)

Miss Islington (bot) webhook-mailer at python.org
Tue Dec 10 18:40:11 EST 2019


https://github.com/python/cpython/commit/00e2fe4f214eadd5714751968e158c78a8a3f04b
commit: 00e2fe4f214eadd5714751968e158c78a8a3f04b
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-12-10T15:40:02-08:00
summary:

bpo-39012: Fix RC version suffix for nuget release files (GH-17564)

(cherry picked from commit d0802d07d2c864b95480a9b24c7cc050e19189d5)

Co-authored-by: Steve Dower <steve.dower at python.org>

files:
M PC/layout/support/constants.py

diff --git a/PC/layout/support/constants.py b/PC/layout/support/constants.py
index a8647631e9b4c..6cf0fe1d34c4a 100644
--- a/PC/layout/support/constants.py
+++ b/PC/layout/support/constants.py
@@ -20,7 +20,7 @@ def _unpack_hexversion():
 
 
 def _get_suffix(field4):
-    name = {0xA0: "a", 0xB0: "b", 0xC0: "c"}.get(field4 & 0xF0, "")
+    name = {0xA0: "a", 0xB0: "b", 0xC0: "rc"}.get(field4 & 0xF0, "")
     if name:
         serial = field4 & 0x0F
         return f"{name}{serial}"



More information about the Python-checkins mailing list