aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@gentoo.org>2019-12-24 23:33:55 -0500
committerGöktürk Yüksek <gokturk@gentoo.org>2019-12-24 23:35:59 -0500
commit412fa6cd47e75ef45b7d472d6c4fbea9dcea5550 (patch)
tree49819fe61bbba360b647b147310280df83923cb3 /bin
parentgeneral-concepts/dependencies: remove incorrect indentation in <p> (diff)
downloaddevmanual-412fa6cd47e75ef45b7d472d6c4fbea9dcea5550.tar.gz
devmanual-412fa6cd47e75ef45b7d472d6c4fbea9dcea5550.tar.bz2
devmanual-412fa6cd47e75ef45b7d472d6c4fbea9dcea5550.zip
bin/build_search_documents.py: do not use the deprecated .getchildren()
``` Deprecated since version 3.2, will be removed in version 3.9: Use list(elem) or iteration. ``` Suggested-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build_search_documents.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build_search_documents.py b/bin/build_search_documents.py
index e19dce6..37b6af9 100755
--- a/bin/build_search_documents.py
+++ b/bin/build_search_documents.py
@@ -30,7 +30,7 @@ def stringify_node(parent: ET.Element) -> str:
# along with the tail text following it.
# The tail may include '\n' if it spans multiple lines.
# We will worry about those on return, not now.
- for child in parent.getchildren():
+ for child in parent:
# The '<d/>' tag is simply a fancier '-' character
if child.tag == 'd':
text += '-'