Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f8a2865

Browse files
committed
#16019, #16020: merge with 3.2.
2 parents 5799a2d + 8618fb6 commit f8a2865

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Doc/tutorial/stdlib2.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)