mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-17 18:54:46 +03:00
Prevent hanging file pointers for Image
This commit is contained in:
parent
fbb92e99bb
commit
fd9e0e7f9e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user