mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #15586: fix prompts in some documentation examples
This commit is contained in:
parent
cd7128a549
commit
a1b0f6d9be
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue