[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-07-31 19:19:54 +00:00
parent 27a0339d64
commit 2f5493a5f0

View File

@ -74,9 +74,9 @@ class WebPImageFile(ImageFile.ImageFile):
self.info["background"] = (bg_r, bg_g, bg_b, bg_a)
self.n_frames = frame_count
self.is_animated = self.n_frames > 1
_,ts=self._decoder.get_next()
_, ts = self._decoder.get_next()
if ts:
self.info["duration"]=ts
self.info["duration"] = ts
self._mode = "RGB" if mode == "RGBX" else mode
self.rawmode = mode
self.tile = []