mirror of
https://github.com/python/cpython
synced 2024-09-16 02:00:00 +00:00
Fix code-block in zoneinfo (GH-20201)
``` 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 ```
This commit is contained in:
parent
3764069f3b
commit
9095f76613
|
@ -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
|
constructed from ``ZoneInfo("Europe/Berlin")``, one would expect the
|
||||||
following behavior:
|
following behavior:
|
||||||
|
|
||||||
.. code-block::
|
.. code-block:: pycon
|
||||||
|
|
||||||
>>> a = ZoneInfo("Europe/Berlin")
|
>>> a = ZoneInfo("Europe/Berlin")
|
||||||
>>> b = pickle.loads(europe_berlin_pkl)
|
>>> 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
|
constructed from ``ZoneInfo.no_cache("Europe/Berlin")``, one would expect
|
||||||
the following behavior:
|
the following behavior:
|
||||||
|
|
||||||
.. code-block::
|
.. code-block:: pycon
|
||||||
|
|
||||||
>>> a = ZoneInfo("Europe/Berlin")
|
>>> a = ZoneInfo("Europe/Berlin")
|
||||||
>>> b = pickle.loads(europe_berlin_pkl_nc)
|
>>> b = pickle.loads(europe_berlin_pkl_nc)
|
||||||
|
|
Loading…
Reference in a new issue