Commit 40665bcd authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[py3] Force evaluation of dict's items() before modifying the dict

parent 12ef95c411d0
......@@ -306,7 +306,7 @@ class SEDA2ExportAdapter(EntityAdapter):
attributes = attributes or {}
tag = self.qname(tag)
documentation = attributes.pop('documentation', None)
for attr, value in attributes.items():
for attr, value in list(attributes.items()):
newattr = substitute_xml_prefix(attr, self.namespaces)
attributes[newattr] = value
if newattr != attr:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment