summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-06 07:23:03 (GMT)
committerGeorg Brandl <georg@python.org>2013-10-06 07:23:03 (GMT)
commitbdaee3ac95f569c22a0f40af6f7c339cab40d832 (patch)
tree162ba1fd5efe0a80dbb238c29f79db796aba9f2f /Doc
parentc2b17b2ebae4930c65e3de38a0eb66c8ed1cfc30 (diff)
downloadcpython-bdaee3ac95f569c22a0f40af6f7c339cab40d832.zip
cpython-bdaee3ac95f569c22a0f40af6f7c339cab40d832.tar.gz
cpython-bdaee3ac95f569c22a0f40af6f7c339cab40d832.tar.bz2
Fix: Element.text is an attribute, not a method (report by Cameron Laird on docs@)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/xml.etree.elementtree.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst
index 7270067..8673961 100644
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -123,7 +123,7 @@ the sub-tree below it (its children, their children, and so on). For example,
:meth:`Element.findall` finds only elements with a tag which are direct
children of the current element. :meth:`Element.find` finds the *first* child
-with a particular tag, and :meth:`Element.text` accesses the element's text
+with a particular tag, and :attr:`Element.text` accesses the element's text
content. :meth:`Element.get` accesses the element's attributes::
>>> for country in root.findall('country'):