From 2cba9904db9df42a1c1502296e567a2d000df3b8 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 8 Apr 2023 11:48:06 +1000 Subject: [PATCH] Removed _category --- src/PIL/Image.py | 2 -- src/PIL/MicImagePlugin.py | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 0d7a9bbfc..5a43f6c4a 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -487,7 +487,6 @@ class Image: self._size = (0, 0) self.palette = None self.info = {} - self._category = 0 self.readonly = 0 self.pyaccess = None self._exif = None @@ -604,7 +603,6 @@ class Image: and self.mode == other.mode and self.size == other.size and self.info == other.info - and self._category == other._category and self.getpalette() == other.getpalette() and self.tobytes() == other.tobytes() ) diff --git a/src/PIL/MicImagePlugin.py b/src/PIL/MicImagePlugin.py index 58f7327bd..801318930 100644 --- a/src/PIL/MicImagePlugin.py +++ b/src/PIL/MicImagePlugin.py @@ -66,9 +66,6 @@ class MicImageFile(TiffImagePlugin.TiffImageFile): self._n_frames = len(self.images) self.is_animated = self._n_frames > 1 - if len(self.images) > 1: - self._category = Image.CONTAINER - self.seek(0) def seek(self, frame):