Skip to content

Commit

Permalink
Remove call to deprecated Element.getchildren.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Jun 22, 2020
1 parent ad22977 commit 4fb8bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocrmypdf/hocrtransform.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _get_element_text(self, element):
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
Expand Down

0 comments on commit 4fb8bf6

Please sign in to comment.