Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

cpython: Issue #15586: fix prompts in some documentation examples

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

Aug 17, 2012, 7:43 PM

Post #1 of 1 (36 views)
Permalink
cpython: Issue #15586: fix prompts in some documentation examples

http://hg.python.org/cpython/rev/7012f6a74f66
changeset: 78636:7012f6a74f66
parent: 78634:a343fa692bb0
user: Eli Bendersky <eliben [at] gmail>
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

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.