mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-29 19:36:19 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
9165771d5e
commit
777c54a4d1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user