Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
seda
Commits
e7bc12390c5d
Commit
40665bcd
authored
Oct 02, 2019
by
Denis Laxalde
Browse files
[py3] Force evaluation of dict's items() before modifying the dict
parent
12ef95c411d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_seda/entities/profile_generation.py
View file @
e7bc1239
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment