mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
671d5cec4b
commit
ef5bab65e8
@ -106,7 +106,7 @@ class OEBReader:
|
||||
elem.tag = OPF(barename(elem.tag))
|
||||
nsmap.update(OPF2_NSMAP)
|
||||
attrib = dict(opf.attrib)
|
||||
if xmlns := attrib.pop('xmlns:'):
|
||||
if xmlns := attrib.pop('xmlns:', None):
|
||||
attrib['xmlns'] = xmlns
|
||||
nroot = etree.Element(OPF('package'),
|
||||
nsmap={None: OPF2_NS}, attrib=attrib)
|
||||
|
Loading…
x
Reference in New Issue
Block a user