Update Image.py

Trying to save some memory when many pictures are opened at a time.
This commit is contained in:
p0123n 2017-04-14 00:52:21 +03:00 committed by GitHub
parent e4faa1069a
commit 728ccdc4b6

View File

@ -2444,6 +2444,7 @@ def open(fp, mode="r"):
if im:
im._exclusive_fp = exclusive_fp
fp.close()
return im
if exclusive_fp: