From 5c251c0e49bef5bed6273a90bd64df07e74f52c4 Mon Sep 17 00:00:00 2001 From: Stepa <> Date: Wed, 22 Jul 2026 23:37:21 +0500 Subject: [PATCH 1/5] Refactor hsv_to_rgb in colorsys to remove dead code branch --- Lib/colorsys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/colorsys.py b/Lib/colorsys.py index e97f91718a3a30a..563f523b8b00281 100644 --- a/Lib/colorsys.py +++ b/Lib/colorsys.py @@ -161,6 +161,6 @@ def hsv_to_rgb(h, s, v): return p, q, v if i == 4: return t, p, v - if i == 5: + else: return v, p, q # Cannot get here From 18f94826a51966c177f703053fae2e80c2fb6ca3 Mon Sep 17 00:00:00 2001 From: Stepa <> Date: Thu, 23 Jul 2026 01:32:02 +0500 Subject: [PATCH 2/5] Add news blurb --- Misc/NEWS.d/next/Library/2026-07-23-news.rst | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2026-07-23-news.rst diff --git a/Misc/NEWS.d/next/Library/2026-07-23-news.rst b/Misc/NEWS.d/next/Library/2026-07-23-news.rst new file mode 100644 index 000000000000000..0817e24941b0d0c --- /dev/null +++ b/Misc/NEWS.d/next/Library/2026-07-23-news.rst @@ -0,0 +1,3 @@ +.. section: Library + +Refactor hsv_to_rgb in colorsys to remove a dead code branch. From fe6cc0ee9bc4b73fe544883233dd8e6fc8ae62c9 Mon Sep 17 00:00:00 2001 From: Stepa <> Date: Thu, 23 Jul 2026 01:34:03 +0500 Subject: [PATCH 3/5] Fix news blurb filename --- .../{2026-07-23-news.rst => 2026-07-23-gh-issue-99999.xCxm0T.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Misc/NEWS.d/next/Library/{2026-07-23-news.rst => 2026-07-23-gh-issue-99999.xCxm0T.rst} (100%) diff --git a/Misc/NEWS.d/next/Library/2026-07-23-news.rst b/Misc/NEWS.d/next/Library/2026-07-23-gh-issue-99999.xCxm0T.rst similarity index 100% rename from Misc/NEWS.d/next/Library/2026-07-23-news.rst rename to Misc/NEWS.d/next/Library/2026-07-23-gh-issue-99999.xCxm0T.rst From 30903d5e5c43610f57a524f92292416d0f44d2e1 Mon Sep 17 00:00:00 2001 From: Stepa <> Date: Thu, 23 Jul 2026 01:37:39 +0500 Subject: [PATCH 4/5] Add valid news entry via blurb --- Misc/NEWS.d/next/Library/2026-07-23-gh-issue-99999.xCxm0T.rst | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 Misc/NEWS.d/next/Library/2026-07-23-gh-issue-99999.xCxm0T.rst diff --git a/Misc/NEWS.d/next/Library/2026-07-23-gh-issue-99999.xCxm0T.rst b/Misc/NEWS.d/next/Library/2026-07-23-gh-issue-99999.xCxm0T.rst deleted file mode 100644 index 0817e24941b0d0c..000000000000000 --- a/Misc/NEWS.d/next/Library/2026-07-23-gh-issue-99999.xCxm0T.rst +++ /dev/null @@ -1,3 +0,0 @@ -.. section: Library - -Refactor hsv_to_rgb in colorsys to remove a dead code branch. From bd7719dc718cdba053579c2da77421774ad41028 Mon Sep 17 00:00:00 2001 From: Stepa <> Date: Thu, 23 Jul 2026 01:40:27 +0500 Subject: [PATCH 5/5] Add valid news entry via blurb --- .../next/Library/2026-07-23-01-40-17.gh-issue-99999.UehozK.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Library/2026-07-23-01-40-17.gh-issue-99999.UehozK.rst diff --git a/Misc/NEWS.d/next/Library/2026-07-23-01-40-17.gh-issue-99999.UehozK.rst b/Misc/NEWS.d/next/Library/2026-07-23-01-40-17.gh-issue-99999.UehozK.rst new file mode 100644 index 000000000000000..651c978fda64242 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2026-07-23-01-40-17.gh-issue-99999.UehozK.rst @@ -0,0 +1 @@ +Refactor hsv_to_rgb in colorsys to remove a dead code branch.