Prevent hanging file pointers for Image

This commit is contained in:
Dmitry Budaev 2017-01-18 12:06:01 +01:00 committed by Dmitry Budaev
parent fbb92e99bb
commit fd9e0e7f9e

View File

@ -237,8 +237,6 @@ class ImageFile(Image.Image):
self.tile = []
self.readonly = readonly
self.fp = None # might be shared
if not self.map and not LOAD_TRUNCATED_IMAGES and err_code < 0:
# still raised if decoder fails to return anything
raise_ioerror(err_code)