[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-06-15 00:09:00 +00:00
parent 9165771d5e
commit 777c54a4d1

View File

@ -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