]> granicus.if.org Git - python/commitdiff
Issue #15586: fix prompts in some documentation examples
authorEli Bendersky <eliben@gmail.com>
Sat, 18 Aug 2012 02:42:22 +0000 (05:42 +0300)
committerEli Bendersky <eliben@gmail.com>
Sat, 18 Aug 2012 02:42:22 +0000 (05:42 +0300)
Doc/library/xml.etree.elementtree.rst

index b0e009fdd096cbb6cb99af9fe9f757e93c3fecc5..16bb00c1e53f06fdf579e13253aa3aa1a97f3f05 100644 (file)
@@ -150,7 +150,7 @@ attribute to the rank element::
    ...   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 @@ remove all countries with a rank higher than 50::
    ...   if rank > 50:
    ...     root.remove(country)
    ...
-   ... tree.write('output.xml')
+   >>> tree.write('output.xml')
 
 Our XML now looks like this: