If "reset" is always true, then the argument can be removed

This commit is contained in:
Andrew Murray 2023-08-01 19:15:15 +10:00
parent 15e5229030
commit 230a2e3a33

View File

@ -93,7 +93,7 @@ class WebPImageFile(ImageFile.ImageFile):
self.info["xmp"] = xmp self.info["xmp"] = xmp
# Initialize seek state # Initialize seek state
self._reset(reset=True) self._reset()
def _getexif(self): def _getexif(self):
if "exif" not in self.info: if "exif" not in self.info:
@ -116,8 +116,7 @@ class WebPImageFile(ImageFile.ImageFile):
# Set logical frame to requested position # Set logical frame to requested position
self.__logical_frame = frame self.__logical_frame = frame
def _reset(self, reset=True): def _reset(self):
if reset:
self._decoder.reset() self._decoder.reset()
self.__physical_frame = 0 self.__physical_frame = 0
self.__loaded = -1 self.__loaded = -1