]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix code-block in zoneinfo (GH-20201)
authorAnthony Sottile <asottile@umich.edu>
Tue, 19 May 2020 02:02:54 +0000 (19:02 -0700)
committerGitHub <noreply@github.com>
Tue, 19 May 2020 02:02:54 +0000 (19:02 -0700)
```
Warning, treated as error:
/tmp/code/Doc/library/zoneinfo.rst:303:Error in "code-block" directive:
1 argument(s) required, 0 supplied.

.. code-block::

    >>> a = ZoneInfo("Europe/Berlin")
    >>> b = pickle.loads(europe_berlin_pkl)
    >>> a is b
    True
```

Doc/library/zoneinfo.rst

index 1b6f2e7bd15f00968f0e7b8d0875f22255d202ec..3a4c12a73acd7268f382bf4415e1703a80bec4a7 100644 (file)
@@ -300,7 +300,7 @@ The behavior of a ``ZoneInfo`` file depends on how it was constructed:
    constructed from ``ZoneInfo("Europe/Berlin")``, one would expect the
    following behavior:
 
-   .. code-block::
+   .. code-block:: pycon
 
        >>> a = ZoneInfo("Europe/Berlin")
        >>> b = pickle.loads(europe_berlin_pkl)
@@ -314,7 +314,7 @@ The behavior of a ``ZoneInfo`` file depends on how it was constructed:
    constructed from ``ZoneInfo.no_cache("Europe/Berlin")``, one would expect
    the following behavior:
 
-   .. code-block::
+   .. code-block:: pycon
 
        >>> a = ZoneInfo("Europe/Berlin")
        >>> b = pickle.loads(europe_berlin_pkl_nc)