Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/stdlib2.rst @ 79146:ce943bce76c9 2.7
#16019, #16020: fix syntax highlight.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Mon, 24 Sep 2012 17:30:39 +0300 |
| parents | b36cb4602e21 |
| children | 1a3f48c6ef16 |
line wrap: on
line diff
--- a/Doc/tutorial/stdlib2.rst Mon Sep 24 17:06:11 2012 +0300 +++ b/Doc/tutorial/stdlib2.rst Mon Sep 24 17:30:39 2012 +0300 @@ -95,7 +95,7 @@ >>> 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 @@ 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 @@ >>> print "Handling", d.popleft() Handling task1 +:: + unsearched = deque([starting_node]) def breadth_first_search(unsearched): node = unsearched.popleft()
