Merge pull request #5112 from jdufresne/pycon

Update some doc code blocks to the 'pycon' lexer
This commit is contained in:
Andrew Murray 2020-12-20 13:29:41 +11:00 committed by GitHub
commit 330384582a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ Fix regression seeking PNG files
This fixes a regression introduced in 7.1.0 when adding support for APNG files when calling
``seek`` and ``tell``:
.. code-block:: python
.. code-block:: pycon
>>> from PIL import Image
>>> with Image.open("Tests/images/hopper.png") as im:

View File

@ -9,7 +9,7 @@ This fixes a regression introduced in 7.1.0 when adding support for APNG files.
When calling ``seek(n)`` on a regular PNG where ``n > 0``, it failed to raise an
``EOFError`` as it should have done, resulting in:
.. code-block:: python
.. code-block:: pycon
AttributeError: 'NoneType' object has no attribute 'read'