diff --git a/ebook_converter/ebooks/lrf/pylrs/pylrs.py b/ebook_converter/ebooks/lrf/pylrs/pylrs.py index 7fc4d22..745ef6a 100644 --- a/ebook_converter/ebooks/lrf/pylrs/pylrs.py +++ b/ebook_converter/ebooks/lrf/pylrs/pylrs.py @@ -68,7 +68,7 @@ def _checkExists(filename): def _formatXml(root): """ A helper to make the LRS output look nicer. """ - for elem in root.getiterator(): + for elem in root: if len(elem) > 0 and (not elem.text or not elem.text.strip()): elem.text = "\n" if not elem.tail or not elem.tail.strip():