Housekeeping
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user