Explicitly declare code as Python [ci skip]

This commit is contained in:
Andrew Murray 2020-08-10 23:04:09 +10:00
parent d53602ea6e
commit f67f819a3d

View File

@ -159,6 +159,8 @@ can be used with most uncompressed file formats, such as PPM, BMP, uncompressed
TIFF, and many others. To use the raw decoder with the
:py:func:`PIL.Image.frombytes` function, use the following syntax::
.. code-block:: python
image = Image.frombytes(
mode, size, data, "raw",
raw mode, stride, orientation
@ -269,6 +271,8 @@ image memory.
To use the bit decoder with the :py:func:`PIL.Image.frombytes` function, use
the following syntax::
.. code-block:: python
image = Image.frombytes(
mode, size, data, "bit",
bits, pad, fill, sign, orientation