[Python-checkins] Fix code-block in zoneinfo (GH-20201)
Anthony Sottile
webhook-mailer at python.org
Mon May 18 22:03:02 EDT 2020
https://github.com/python/cpython/commit/9095f76613c8dd67beb21992def837bb8a37ed25
commit: 9095f76613c8dd67beb21992def837bb8a37ed25
branch: master
author: Anthony Sottile <asottile at umich.edu>
committer: GitHub <noreply at github.com>
date: 2020-05-18T19:02:54-07:00
summary:
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
```
files:
M Doc/library/zoneinfo.rst
diff --git a/Doc/library/zoneinfo.rst b/Doc/library/zoneinfo.rst
index 1b6f2e7bd15f0..3a4c12a73acd7 100644
--- a/Doc/library/zoneinfo.rst
+++ b/Doc/library/zoneinfo.rst
@@ -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)
More information about the Python-checkins
mailing list