From e87432b745060dc3ec34119bfe1a198578fd7fa2 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 8 Mar 2022 19:51:24 +1100 Subject: [PATCH] First return value is unused --- src/PIL/ImageFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/ImageFile.py b/src/PIL/ImageFile.py index aac961a76..34f344f1d 100644 --- a/src/PIL/ImageFile.py +++ b/src/PIL/ImageFile.py @@ -231,7 +231,7 @@ class ImageFile(Image.Image): decoder.setimage(self.im, extents) if decoder.pulls_fd: decoder.setfd(self.fp) - status, err_code = decoder.decode(b"") + err_code = decoder.decode(b"")[1] else: b = prefix while True: