File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ placeholders unchanged if data is missing::
9595 >>> d = dict(item='unladen swallow')
9696 >>> t.substitute(d)
9797 Traceback (most recent call last):
98- . . .
98+ .. .
9999 KeyError: 'owner'
100100 >>> t.safe_substitute(d)
101101 'Return the unladen swallow to $owner.'
@@ -220,7 +220,9 @@ At its simplest, log messages are sent to a file or to ``sys.stderr``::
220220 logging.error('Error occurred')
221221 logging.critical('Critical error -- shutting down')
222222
223- This produces the following output::
223+ This produces the following output:
224+
225+ .. code-block :: none
224226
225227 WARNING:root:Warning:config file server.conf not found
226228 ERROR:root:Error occurred
@@ -311,6 +313,8 @@ tree searches::
311313 >>> print("Handling", d.popleft())
312314 Handling task1
313315
316+ ::
317+
314318 unsearched = deque([starting_node])
315319 def breadth_first_search(unsearched):
316320 node = unsearched.popleft()
You can’t perform that action at this time.
0 commit comments