mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Add note to lena()/hopper() functions
This commit is contained in:
parent
f10bdf7cd1
commit
337b222438
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user