commit: 412fa6cd47e75ef45b7d472d6c4fbea9dcea5550
Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 25 04:33:55 2019 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Wed Dec 25 04:35:59 2019 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=412fa6cd
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 <AT> gentoo.org>
Signed-off-by: Göktürk Yüksek <gokturk <AT> gentoo.org>
bin/build_search_documents.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 += '-'