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