mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Explicitly declare code as Python [ci skip]
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
04f856b13c
commit
d53602ea6e
|
@ -105,7 +105,9 @@ Note that the image plugin must be explicitly registered using
|
||||||
:py:func:`PIL.Image.register_open`. Although not required, it is also a good
|
:py:func:`PIL.Image.register_open`. Although not required, it is also a good
|
||||||
idea to register any extensions used by this format.
|
idea to register any extensions used by this format.
|
||||||
|
|
||||||
Once the plugin has been imported, it can be used::
|
Once the plugin has been imported, it can be used:
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
import SpamImagePlugin
|
import SpamImagePlugin
|
||||||
|
@ -423,4 +425,3 @@ Python-based file decoder:
|
||||||
|
|
||||||
3. Cleanup: The decoder instance's ``cleanup`` method is called.
|
3. Cleanup: The decoder instance's ``cleanup`` method is called.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user