mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
Fixed #1649: IDLE error: dictionary changed size during iteration
This commit is contained in:
parent
fd7ed407d7
commit
0423698bc3
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ def __repr__(self):
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue