mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-03 04:33:31 +03:00
Wording
This commit is contained in:
parent
44d97759af
commit
031e81eef6
|
@ -26,9 +26,7 @@ PIL is not setuptools compatible. Please see http://mail.python.org/pipermail/im
|
||||||
Porting
|
Porting
|
||||||
-------
|
-------
|
||||||
|
|
||||||
Pillow is a functional dropin for the Python Imaging Library. To run
|
Pillow is a functional drop-in for the Python Imaging Library. To run under Pillow, existing code needs to be modified to import the Imaging modules from the PIL namespace instead of the global namespace.
|
||||||
under Pillow, existing code needs to be modified to import the Imaging
|
|
||||||
modules from the PIL namespace instead of the global namespace.
|
|
||||||
|
|
||||||
Change::
|
Change::
|
||||||
|
|
||||||
|
@ -38,9 +36,7 @@ to::
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
Note that if your code imports _imaging, that will also be hosted in
|
Note that if your code imports _imaging, that will also be hosted in the PIL namespace. The preferred, future proof method of importing the private _imaging module is::
|
||||||
the PIL namespace. The preferred, future proof method of importing the
|
|
||||||
private _imaging module is::
|
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
_imaging = Image.core
|
_imaging = Image.core
|
||||||
|
|
Loading…
Reference in New Issue
Block a user