Skip to content

Commit 5c251c0

Browse files
author
Stepa
committed
Refactor hsv_to_rgb in colorsys to remove dead code branch
1 parent f429fb3 commit 5c251c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/colorsys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,6 @@ def hsv_to_rgb(h, s, v):
161161
return p, q, v
162162
if i == 4:
163163
return t, p, v
164-
if i == 5:
164+
else:
165165
return v, p, q
166166
# Cannot get here

0 commit comments

Comments
 (0)