From 474e23b26137dbb17b530b71835f47123eeeefa6 Mon Sep 17 00:00:00 2001 From: kthoden Date: Tue, 19 Mar 2019 17:45:19 +0100 Subject: [PATCH] Typo --- fix_tei.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fix_tei.py b/fix_tei.py index 1797f93..f537f37 100644 --- a/fix_tei.py +++ b/fix_tei.py @@ -361,7 +361,7 @@ def cleanup_xml(xml_tree): for attribute in xml_preserve: attribute.attrib.pop("{http://www.w3.org/XML/1998/namespace}space") - formulae = xmltree.xpath("//t:formula", namespaces=NS_MAP) + formulae = xml_tree.xpath("//t:formula", namespaces=NS_MAP) logging.info(f"Found {len(formulae)} formulae.") for formula in formulae: