[PATCH 09 of 17 seda] [py3] Force evaluation of dict's items() before modifying the dict

Denis Laxalde denis.laxalde at logilab.fr
Wed Oct 2 16:06:37 CEST 2019


diff --git a/cubicweb_seda/entities/profile_generation.py b/cubicweb_seda/entities/profile_generation.py
index 287375a..e173814 100644
--- a/cubicweb_seda/entities/profile_generation.py
+++ b/cubicweb_seda/entities/profile_generation.py
@@ -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:



More information about the saem-devel mailing list