return values

This commit is contained in:
wiredfool 2016-05-29 13:41:59 -07:00
parent 653b170385
commit 533f4145bb

View File

@ -492,7 +492,7 @@ def _save(im, fp, tile, bufsize=0):
e.setimage(im.im, b) e.setimage(im.im, b)
if e.pushes_fd: if e.pushes_fd:
e.setfd(fp) e.setfd(fp)
e.encode_to_pyfd() l,s = e.encode_to_pyfd()
else: else:
s = e.encode_to_file(fh, bufsize) s = e.encode_to_file(fh, bufsize)
if s < 0: if s < 0: