Skip to content

Commit

Permalink
prevent dictionary changed size during iteration in py3
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed Sep 19, 2018
1 parent b1c3e6f commit 28174f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plone/schemaeditor/browser/schema/add_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def create(self, data):
factory = data.pop('factory')

# split regular attributes and extra ones
for key in data.keys():
for key in list(data.keys()):
if key not in self._schema:
extra[key] = data[key]
data.pop(key)
Expand Down

0 comments on commit 28174f5

Please sign in to comment.