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.'
@@ -218,7 +218,9 @@ At its simplest, log messages are sent to a file or to ``sys.stderr``::
218218 logging.error('Error occurred')
219219 logging.critical('Critical error -- shutting down')
220220
221- This produces the following output::
221+ This produces the following output:
222+
223+ .. code-block :: none
222224
223225 WARNING:root:Warning:config file server.conf not found
224226 ERROR:root:Error occurred
@@ -309,6 +311,8 @@ tree searches::
309311 >>> print("Handling", d.popleft())
310312 Handling task1
311313
314+ ::
315+
312316 unsearched = deque([starting_node])
313317 def breadth_first_search(unsearched):
314318 node = unsearched.popleft()
You can’t perform that action at this time.
0 commit comments