From b986cd25dde7dad82b2313b6feb2306456ad824c Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 29 Jan 2026 19:50:34 +1100 Subject: [PATCH] Removed unnecessary code --- src/PIL/WmfImagePlugin.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/PIL/WmfImagePlugin.py b/src/PIL/WmfImagePlugin.py index 3ae86242a8b..a85c62a9342 100644 --- a/src/PIL/WmfImagePlugin.py +++ b/src/PIL/WmfImagePlugin.py @@ -45,7 +45,6 @@ def register_handler(handler: ImageFile.StubHandler | None) -> None: class WmfHandler(ImageFile.StubHandler): def open(self, im: ImageFile.StubImageFile) -> None: - im._mode = "RGB" self.bbox = im.info["wmf_bbox"] def load(self, im: ImageFile.StubImageFile) -> Image.Image: