[Python-checkins] cpython (2.7): #16019, #16020: fix syntax highlight.
ezio.melotti
python-checkins at python.org
Mon Sep 24 16:32:04 CEST 2012
http://hg.python.org/cpython/rev/ce943bce76c9
changeset: 79146:ce943bce76c9
branch: 2.7
parent: 79143:063a052af878
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Mon Sep 24 17:30:39 2012 +0300
summary:
#16019, #16020: fix syntax highlight.
files:
Doc/tutorial/stdlib2.rst | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst
--- a/Doc/tutorial/stdlib2.rst
+++ b/Doc/tutorial/stdlib2.rst
@@ -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()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list