Skip to content

Commit

Permalink
Rearranged code
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 4, 2023
1 parent 27d7bd1 commit 5a8280d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PIL/ImagePalette.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ def raw(rawmode, data):


def make_linear_lut(black, white):
if black == 0:
return [white * i // 255 for i in range(256)]
if black != 0:
msg = "unavailable when black is non-zero"
raise NotImplementedError(msg) # FIXME

msg = "unavailable when black is non-zero"
raise NotImplementedError(msg) # FIXME
return [white * i // 255 for i in range(256)]


def make_gamma_lut(exp):
Expand Down

0 comments on commit 5a8280d

Please sign in to comment.