Add note to lena()/hopper() functions

This commit is contained in:
hugovk 2014-09-14 21:44:29 +03:00
parent f10bdf7cd1
commit 337b222438

View File

@ -180,6 +180,7 @@ def tostring(im, format, **options):
return out.getvalue()
# Note: hopper() should be used in place of lena(), which will be removed.
def hopper(mode="RGB", cache={}):
from PIL import Image
im = None
@ -200,6 +201,7 @@ def hopper(mode="RGB", cache={}):
return im
# Note: hopper() should be used instead lena(), which will be removed.
def lena(mode="RGB", cache={}):
from PIL import Image
im = None