summaryrefslogtreecommitdiffstats
path: root/Lib/xml/etree
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2013-03-12 13:04:33 (GMT)
committerEli Bendersky <eliben@gmail.com>2013-03-12 13:04:33 (GMT)
commit72cdb5c39e8221e04aa858a1e5f48b02014aa2b0 (patch)
tree72aa2ac28b9bfa66a2defcc00764a48db099b7fe /Lib/xml/etree
parent0fb37ea34d260d817520578057ab79dc97f780ff (diff)
parent7343cb0790d3ac722ee788d5c2044cbda770a140 (diff)
downloadcpython-72cdb5c39e8221e04aa858a1e5f48b02014aa2b0.zip
cpython-72cdb5c39e8221e04aa858a1e5f48b02014aa2b0.tar.gz
cpython-72cdb5c39e8221e04aa858a1e5f48b02014aa2b0.tar.bz2
Issue #11367: fix documentation of some find* methods in ElementTree
Diffstat (limited to 'Lib/xml/etree')
-rw-r--r--Lib/xml/etree/ElementTree.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py
index 641d787..4c73303 100644
--- a/Lib/xml/etree/ElementTree.py
+++ b/Lib/xml/etree/ElementTree.py
@@ -692,8 +692,7 @@ class ElementTree:
return list(self.iter(tag))
##
- # Finds the first toplevel element with given tag.
- # Same as getroot().find(path).
+ # Same as getroot().find(path), starting at the root of the tree.
#
# @param path What element to look for.
# @keyparam namespaces Optional namespace prefix map.
@@ -713,10 +712,9 @@ class ElementTree:
return self._root.find(path, namespaces)
##
- # Finds the element text for the first toplevel element with given
- # tag. Same as getroot().findtext(path).
+ # Same as getroot().findtext(path), starting at the root of the tree.
#
- # @param path What toplevel element to look for.
+ # @param path What element to look for.
# @param default What to return if the element was not found.
# @keyparam namespaces Optional namespace prefix map.
# @return The text content of the first matching element, or the
@@ -738,8 +736,7 @@ class ElementTree:
return self._root.findtext(path, default, namespaces)
##
- # Finds all toplevel elements with the given tag.
- # Same as getroot().findall(path).
+ # Same as getroot().findall(path), starting at the root of the tree.
#
# @param path What element to look for.
# @keyparam namespaces Optional namespace prefix map.