Skip to content

Commit

Permalink
use format string instead of concatenation
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Murray <[email protected]>
  • Loading branch information
Yay295 and radarhere authored Oct 24, 2023
1 parent ef46608 commit 6ddf10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/ImageOps.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _lut(image, lut):
lut = lut + lut + lut
return image.point(lut)
else:
msg = "not supported for image mode " + image.mode
msg = f"not supported for mode {image.mode}"
raise OSError(msg)


Expand Down

0 comments on commit 6ddf10c

Please sign in to comment.