mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
Fixed typos in the porting guide
This commit is contained in:
parent
bb449f30ec
commit
92a150ab73
|
@ -3,7 +3,7 @@ Porting existing PIL-based code to Pillow
|
||||||
|
|
||||||
Pillow is a functional drop-in replacement for the Python Imaging Library. To
|
Pillow is a functional drop-in replacement for the Python Imaging Library. To
|
||||||
run your existing PIL-compatible code with Pillow, it needs to be modified to
|
run your existing PIL-compatible code with Pillow, it needs to be modified to
|
||||||
import the ``Imaging`` module from the ``PIL`` namespace *instead* of the
|
import the ``Image`` module from the ``PIL`` namespace *instead* of the
|
||||||
global namespace. Change this::
|
global namespace. Change this::
|
||||||
|
|
||||||
import Image
|
import Image
|
||||||
|
@ -16,7 +16,7 @@ The :py:mod:`_imaging` module has been moved. You can now import it like this::
|
||||||
|
|
||||||
from PIL.Image import core as _imaging
|
from PIL.Image import core as _imaging
|
||||||
|
|
||||||
The image plugin loading mechanisim has changed. Pillow no longer
|
The image plugin loading mechanism has changed. Pillow no longer
|
||||||
automatically imports any file in the Python path with a name ending
|
automatically imports any file in the Python path with a name ending
|
||||||
in :file:`ImagePlugin.py`. You will need to import your image plugin
|
in :file:`ImagePlugin.py`. You will need to import your image plugin
|
||||||
manually.
|
manually.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user