summaryrefslogtreecommitdiffstats
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)
commit5e7f16e77ee0b5581dc903a77ce43703b4cdf11e (patch)
tree2ffdf9d0ae7d837ebbacd00f91e4c48a3fe53f52
parentdc5f3fa85e60695391508f4c4cccab815d0dc311 (diff)
downloadcpython-5e7f16e77ee0b5581dc903a77ce43703b4cdf11e.zip
cpython-5e7f16e77ee0b5581dc903a77ce43703b4cdf11e.tar.gz
cpython-5e7f16e77ee0b5581dc903a77ce43703b4cdf11e.tar.bz2
Fix: Element.text is an attribute, not a method (report by Cameron Laird on docs@)
-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 fee56ff..24e5084 100644
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -158,7 +158,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'):