fix dict.keys

This commit is contained in:
Denis Fomin 2013-01-02 23:46:44 +04:00
parent ac9253e04a
commit 6f89a119ae
1 changed files with 1 additions and 1 deletions

View File

@ -2700,7 +2700,7 @@ class ChatControl(ChatControlBase):
backend=backend)
# remove all register handlers on widgets, created by self.xml
# to prevent circular references among objects
for i in self.handlers.keys():
for i in list(self.handlers.keys()):
if self.handlers[i].handler_is_connected(i):
self.handlers[i].disconnect(i)
del self.handlers[i]