mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix #1033 (py3: When changing a dict, iterate over a copy of its items)
This commit is contained in:
parent
efd5eefa0f
commit
ae35cdd814
@ -702,7 +702,7 @@ class Metadata(object):
|
|||||||
term = CALIBRE(local)
|
term = CALIBRE(local)
|
||||||
self.term = term
|
self.term = term
|
||||||
self.value = value
|
self.value = value
|
||||||
for attr, value in attrib.items():
|
for attr, value in tuple(iteritems(attrib)):
|
||||||
if isprefixname(value):
|
if isprefixname(value):
|
||||||
attrib[attr] = qname(value, nsmap)
|
attrib[attr] = qname(value, nsmap)
|
||||||
nsattr = Metadata.OPF_ATTRS.get(attr, attr)
|
nsattr = Metadata.OPF_ATTRS.get(attr, attr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user