mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-29 18:23:24 +03:00
Clarify variable names in TiffImagePlugin
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
This commit is contained in:
parent
6f79e653d6
commit
8e18415cc5
|
@ -1845,13 +1845,13 @@ def _save(im, fp, filename):
|
||||||
e.setimage(im.im, (0, 0) + im.size)
|
e.setimage(im.im, (0, 0) + im.size)
|
||||||
while True:
|
while True:
|
||||||
# undone, change to self.decodermaxblock:
|
# undone, change to self.decodermaxblock:
|
||||||
l, s, d = e.encode(16 * 1024)
|
length, error_code, chunk = e.encode(16 * 1024)
|
||||||
if not _fp:
|
if not _fp:
|
||||||
fp.write(d)
|
fp.write(chunk)
|
||||||
if s:
|
if error_code:
|
||||||
break
|
break
|
||||||
if s < 0:
|
if error_code < 0:
|
||||||
msg = f"encoder error {s} when writing image file"
|
msg = f"encoder error {error_code} when writing image file"
|
||||||
raise OSError(msg)
|
raise OSError(msg)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user