summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-05-18 19:02:54 -0700
committerGitHub <noreply@github.com>2020-05-18 19:02:54 -0700
commit9095f76613c8dd67beb21992def837bb8a37ed25 (patch)
treeeb685d16c9681c5e1c6f137765468a4d9960a094
parent3764069f3ba2a7e932837ae19265059339dc86e3 (diff)
downloadcpython-git-9095f76613c8dd67beb21992def837bb8a37ed25.tar.gz
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 ```
-rw-r--r--Doc/library/zoneinfo.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/zoneinfo.rst b/Doc/library/zoneinfo.rst
index 1b6f2e7bd1..3a4c12a73a 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)