mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-31 03:03:09 +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()
|
return out.getvalue()
|
||||||
|
|
||||||
|
|
||||||
|
# Note: hopper() should be used in place of lena(), which will be removed.
|
||||||
def hopper(mode="RGB", cache={}):
|
def hopper(mode="RGB", cache={}):
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
im = None
|
im = None
|
||||||
|
@ -200,6 +201,7 @@ def hopper(mode="RGB", cache={}):
|
||||||
return im
|
return im
|
||||||
|
|
||||||
|
|
||||||
|
# Note: hopper() should be used instead lena(), which will be removed.
|
||||||
def lena(mode="RGB", cache={}):
|
def lena(mode="RGB", cache={}):
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
im = None
|
im = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user