mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-23 21:54:46 +03:00
Update Image.py
Trying to save some memory when many pictures are opened at a time.
This commit is contained in:
parent
e4faa1069a
commit
728ccdc4b6
|
@ -2444,6 +2444,7 @@ def open(fp, mode="r"):
|
||||||
|
|
||||||
if im:
|
if im:
|
||||||
im._exclusive_fp = exclusive_fp
|
im._exclusive_fp = exclusive_fp
|
||||||
|
fp.close()
|
||||||
return im
|
return im
|
||||||
|
|
||||||
if exclusive_fp:
|
if exclusive_fp:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user