mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 05:16:43 +01:00
Remove redundant declaration of OPF namespace
This commit is contained in:
parent
d6b38a9725
commit
f45d67f3f0
1 changed files with 3 additions and 1 deletions
|
|
@ -693,7 +693,9 @@ def to_opf1(self, parent=None):
|
|||
def to_opf2(self, parent=None):
|
||||
nsmap = self._opf2_nsmap
|
||||
nsrmap = dict((value, key) for key, value in nsmap.items())
|
||||
elem = element(parent, OPF('metadata'), nsmap=nsmap)
|
||||
nmap = dict(**nsmap)
|
||||
nmap.pop('opf', '')
|
||||
elem = element(parent, OPF('metadata'), nsmap=nmap)
|
||||
for term in self.items:
|
||||
for item in self.items[term]:
|
||||
item.to_opf2(elem, nsrmap=nsrmap)
|
||||
|
|
|
|||
Loading…
Reference in a new issue