Commit 0423698b authored by Christian Heimes's avatar Christian Heimes

Fixed #1649: IDLE error: dictionary changed size during iteration

parent fd7ed407
......@@ -40,7 +40,7 @@ class WidgetRedirector:
self.widget._w)
def close(self):
for operation in self._operations:
for operation in list(self._operations):
self.unregister(operation)
widget = self.widget; del self.widget
orig = self.orig; del self.orig
......
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