mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -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)
|
||||
self.term = term
|
||||
self.value = value
|
||||
for attr, value in attrib.items():
|
||||
for attr, value in tuple(iteritems(attrib)):
|
||||
if isprefixname(value):
|
||||
attrib[attr] = qname(value, nsmap)
|
||||
nsattr = Metadata.OPF_ATTRS.get(attr, attr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user