[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: if exc:
# compress to Python file-compatible object # compress to Python file-compatible object
while True: while True:
errcode, data = encoder.encode( errcode, data = encoder.encode(bufsize)[1:]
bufsize
)[1:]
fp.write(data) fp.write(data)
if errcode: if errcode:
break break