[Python-checkins] cpython: Issue #15586: fix prompts in some documentation examples
eli.bendersky
python-checkins at python.org
Sat Aug 18 04:43:24 CEST 2012
http://hg.python.org/cpython/rev/7012f6a74f66
changeset: 78636:7012f6a74f66
parent: 78634:a343fa692bb0
user: Eli Bendersky <eliben at gmail.com>
date: Sat Aug 18 05:42:22 2012 +0300
summary:
Issue #15586: fix prompts in some documentation examples
files:
Doc/library/xml.etree.elementtree.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -150,7 +150,7 @@
... rank.text = str(new_rank)
... rank.set('updated', 'yes')
...
- ... tree.write('output.xml')
+ >>> tree.write('output.xml')
Our XML now looks like this:
@@ -188,7 +188,7 @@
... if rank > 50:
... root.remove(country)
...
- ... tree.write('output.xml')
+ >>> tree.write('output.xml')
Our XML now looks like this:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list