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

This commit is contained in:
Christian Heimes 2007-12-18 21:56:09 +00:00
parent fd7ed407d7
commit 0423698bc3
1 changed files with 1 additions and 1 deletions

View File

@ -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