Housekeeping

This commit is contained in:
2023-01-26 13:41:19 +01:00
parent e8352dfe3d
commit 6683ef688e

View File

@@ -17,7 +17,7 @@ def xpath(source: str, xpath: str) -> str:
root = etree.XML(source)
nsmap = root.nsmap
# LXML doesn't accept namespace with None key,
# LXML doesn't accept empty (None) namespace prefix,
# so it need to be deleted if exists
if None in nsmap:
nsmap.pop(None)