From 533f4145bb23343fa88eeea5be8cfe554210a1aa Mon Sep 17 00:00:00 2001 From: wiredfool Date: Sun, 29 May 2016 13:41:59 -0700 Subject: [PATCH] return values --- PIL/ImageFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/ImageFile.py b/PIL/ImageFile.py index 7c4ca49af..b21e9e317 100644 --- a/PIL/ImageFile.py +++ b/PIL/ImageFile.py @@ -492,7 +492,7 @@ def _save(im, fp, tile, bufsize=0): e.setimage(im.im, b) if e.pushes_fd: e.setfd(fp) - e.encode_to_pyfd() + l,s = e.encode_to_pyfd() else: s = e.encode_to_file(fh, bufsize) if s < 0: