From 22fb2dbd2931dfad19b12e89df98822b0c7b1822 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 19 May 2021 21:57:40 +1000 Subject: [PATCH] Simplified code --- src/PIL/DdsImagePlugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PIL/DdsImagePlugin.py b/src/PIL/DdsImagePlugin.py index 21e6e0bd7..cdb470a93 100644 --- a/src/PIL/DdsImagePlugin.py +++ b/src/PIL/DdsImagePlugin.py @@ -159,8 +159,8 @@ class DdsImageFile(ImageFile.ImageFile): elif fourcc == b"DX10": data_start += 20 # ignoring flags which pertain to volume textures and cubemaps - dxt10 = BytesIO(self.fp.read(20)) - dxgi_format, dimension = struct.unpack("