From 3115c693b6af72f3ffae3ee5b43a314e20f74faf Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 20 Dec 2024 22:19:13 +0700 Subject: [PATCH] backport had introduced an f-string --- xpra/codecs/pillow/encoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpra/codecs/pillow/encoder.py b/xpra/codecs/pillow/encoder.py index 20d2006d2a..9ac1deb5d7 100644 --- a/xpra/codecs/pillow/encoder.py +++ b/xpra/codecs/pillow/encoder.py @@ -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()