From: Christian Heimes Date: Tue, 18 Dec 2007 21:56:09 +0000 (+0000) Subject: Fixed #1649: IDLE error: dictionary changed size during iteration X-Git-Tag: v2.6a1~835 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0423698bc3c0c09dd82f7ad2ce3c7bc6a0cae851;p=python Fixed #1649: IDLE error: dictionary changed size during iteration --- diff --git a/Lib/idlelib/WidgetRedirector.py b/Lib/idlelib/WidgetRedirector.py index 15b83307c1..7c341f2f1e 100644 --- a/Lib/idlelib/WidgetRedirector.py +++ b/Lib/idlelib/WidgetRedirector.py @@ -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