From 777c54a4d12657ef7ec84af0aea36e07b7739abd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 15 Jun 2023 00:09:00 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/PIL/ImageFile.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/PIL/ImageFile.py b/src/PIL/ImageFile.py index 716b2f06b..d3ab1126c 100644 --- a/src/PIL/ImageFile.py +++ b/src/PIL/ImageFile.py @@ -536,9 +536,7 @@ def _encode_tile(im, fp, tile: List[Image.Tile], bufsize, fh, exc=None): if exc: # compress to Python file-compatible object while True: - errcode, data = encoder.encode( - bufsize - )[1:] + errcode, data = encoder.encode(bufsize)[1:] fp.write(data) if errcode: break