summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-09-24 14:30:39 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-09-24 14:30:39 (GMT)
commit8618fb6a65435338d88c9f7e18fff000aacb4ec0 (patch)
treef5bce889a393889bd9ccf3f3b50a7a3437075d4b /Doc
parentc926c59d80cc7068bda210f5d47af898e39a314b (diff)
downloadcpython-8618fb6a65435338d88c9f7e18fff000aacb4ec0.zip
cpython-8618fb6a65435338d88c9f7e18fff000aacb4ec0.tar.gz
cpython-8618fb6a65435338d88c9f7e18fff000aacb4ec0.tar.bz2
#16019, #16020: fix syntax highlight.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tutorial/stdlib2.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst
index fe7f027..a9ae871 100644
--- a/Doc/tutorial/stdlib2.rst
+++ b/Doc/tutorial/stdlib2.rst
@@ -95,7 +95,7 @@ placeholders unchanged if data is missing::
>>> d = dict(item='unladen swallow')
>>> t.substitute(d)
Traceback (most recent call last):
- . . .
+ ...
KeyError: 'owner'
>>> t.safe_substitute(d)
'Return the unladen swallow to $owner.'
@@ -218,7 +218,9 @@ At its simplest, log messages are sent to a file or to ``sys.stderr``::
logging.error('Error occurred')
logging.critical('Critical error -- shutting down')
-This produces the following output::
+This produces the following output:
+
+.. code-block:: none
WARNING:root:Warning:config file server.conf not found
ERROR:root:Error occurred
@@ -309,6 +311,8 @@ tree searches::
>>> print("Handling", d.popleft())
Handling task1
+::
+
unsearched = deque([starting_node])
def breadth_first_search(unsearched):
node = unsearched.popleft()