[Python-3000-checkins] r56362 - python/branches/p3yk/Lib/idlelib/FileList.py

kurt.kaiser python-3000-checkins at python.org
Sat Jul 14 03:53:45 CEST 2007


Author: kurt.kaiser
Date: Sat Jul 14 03:53:45 2007
New Revision: 56362

Modified:
   python/branches/p3yk/Lib/idlelib/FileList.py
Log:
Was modifying dict during iteration.


Modified: python/branches/p3yk/Lib/idlelib/FileList.py
==============================================================================
--- python/branches/p3yk/Lib/idlelib/FileList.py	(original)
+++ python/branches/p3yk/Lib/idlelib/FileList.py	Sat Jul 14 03:53:45 2007
@@ -44,7 +44,7 @@
         return self.EditorWindow(self, filename)
 
     def close_all_callback(self, event):
-        for edit in self.inversedict.keys():
+        for edit in list(self.inversedict):
             reply = edit.close()
             if reply == "cancel":
                 break


More information about the Python-3000-checkins mailing list