Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
72cdb5c3
Commit
72cdb5c3
authored
Mar 12, 2013
by
Eli Bendersky
Browse files
Options
Browse Files
Download
Plain Diff
Issue #11367: fix documentation of some find* methods in ElementTree
parents
0fb37ea3
7343cb07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
Lib/xml/etree/ElementTree.py
Lib/xml/etree/ElementTree.py
+4
-7
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/xml/etree/ElementTree.py
View file @
72cdb5c3
...
@@ -692,8 +692,7 @@ class ElementTree:
...
@@ -692,8 +692,7 @@ class ElementTree:
return
list
(
self
.
iter
(
tag
))
return
list
(
self
.
iter
(
tag
))
##
##
# Finds the first toplevel element with given tag.
# Same as getroot().find(path), starting at the root of the tree.
# Same as getroot().find(path).
#
#
# @param path What element to look for.
# @param path What element to look for.
# @keyparam namespaces Optional namespace prefix map.
# @keyparam namespaces Optional namespace prefix map.
...
@@ -713,10 +712,9 @@ class ElementTree:
...
@@ -713,10 +712,9 @@ class ElementTree:
return
self
.
_root
.
find
(
path
,
namespaces
)
return
self
.
_root
.
find
(
path
,
namespaces
)
##
##
# Finds the element text for the first toplevel element with given
# Same as getroot().findtext(path), starting at the root of the tree.
# tag. Same as getroot().findtext(path).
#
#
# @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.
# @param default What to return if the element was not found.
# @keyparam namespaces Optional namespace prefix map.
# @keyparam namespaces Optional namespace prefix map.
# @return The text content of the first matching element, or the
# @return The text content of the first matching element, or the
...
@@ -738,8 +736,7 @@ class ElementTree:
...
@@ -738,8 +736,7 @@ class ElementTree:
return
self
.
_root
.
findtext
(
path
,
default
,
namespaces
)
return
self
.
_root
.
findtext
(
path
,
default
,
namespaces
)
##
##
# Finds all toplevel elements with the given tag.
# Same as getroot().findall(path), starting at the root of the tree.
# Same as getroot().findall(path).
#
#
# @param path What element to look for.
# @param path What element to look for.
# @keyparam namespaces Optional namespace prefix map.
# @keyparam namespaces Optional namespace prefix map.
...
...
Misc/ACKS
View file @
72cdb5c3
...
@@ -480,6 +480,7 @@ Janko Hauser
...
@@ -480,6 +480,7 @@ Janko Hauser
Rycharde Hawkes
Rycharde Hawkes
Ben Hayden
Ben Hayden
Jochen Hayek
Jochen Hayek
Henrik Heimbuerger
Christian Heimes
Christian Heimes
Thomas Heller
Thomas Heller
Malte Helmert
Malte Helmert
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment