Skip to content

Commit

Permalink
Simplified code
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 9, 2024
1 parent 56fa3c6 commit 56c79b6
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/PIL/GimpGradientFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,7 @@ def __init__(self, fp: IO[bytes]) -> None:

count = int(line)

gradient: list[
tuple[
float,
float,
float,
list[float],
list[float],
Callable[[float, float], float],
]
] = []
self.gradient = []

for i in range(count):
s = fp.readline().split()
Expand All @@ -155,6 +146,4 @@ def __init__(self, fp: IO[bytes]) -> None:
msg = "cannot handle HSV colour space"
raise OSError(msg)

gradient.append((x0, x1, xm, rgb0, rgb1, segment))

self.gradient = gradient
self.gradient.append((x0, x1, xm, rgb0, rgb1, segment))

0 comments on commit 56c79b6

Please sign in to comment.