hoctransform: remove deprecated element.getchildren()

Breaks Python 3.9.
This commit is contained in:
James R. Barlow
2020-06-22 14:28:18 -07:00
parent ad8dead7df
commit c8b581ac31
+1 -1
View File
@@ -110,7 +110,7 @@ class HocrTransform:
text = ''
if element.text is not None:
text += element.text
for child in element.getchildren():
for child in element:
text += self._get_element_text(child)
if element.tail is not None:
text += element.tail