Explicitly declare code as Python [ci skip]

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2020-08-10 22:46:36 +10:00 committed by GitHub
parent 04f856b13c
commit d53602ea6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
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
import SpamImagePlugin
@ -423,4 +425,3 @@ Python-based file decoder:
3. Cleanup: The decoder instance's ``cleanup`` method is called.