Skip to content

Commit

Permalink
backport had introduced an f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Dec 20, 2024
1 parent 4e881c6 commit 3115c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/codecs/pillow/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def encode(coding, image, quality, speed, supports_transparency):
log("pillow.encode%s", (coding, image, quality, speed, supports_transparency))
pixel_format = bytestostr(image.get_pixel_format())
if coding not in ("jpeg", "webp", "png", "png/P", "png/L"):
raise ValueError(f"unsupported encoding: %s", coding)
raise ValueError("unsupported encoding: %s" % coding)
palette = None
w = image.get_width()
h = image.get_height()
Expand Down

0 comments on commit 3115c69

Please sign in to comment.