[Python-3000-checkins] r53966 - python/branches/p3yk/Lib/linecache.py

guido.van.rossum python-3000-checkins at python.org
Mon Feb 26 23:21:29 CET 2007


Author: guido.van.rossum
Date: Mon Feb 26 23:21:25 2007
New Revision: 53966

Modified:
   python/branches/p3yk/Lib/linecache.py
Log:
Fix another loop over a dict that may change... :-(


Modified: python/branches/p3yk/Lib/linecache.py
==============================================================================
--- python/branches/p3yk/Lib/linecache.py	(original)
+++ python/branches/p3yk/Lib/linecache.py	Mon Feb 26 23:21:25 2007
@@ -45,7 +45,7 @@
     (This is not checked upon each call!)"""
 
     if filename is None:
-        filenames = cache.keys()
+        filenames = list(cache.keys())
     else:
         if filename in cache:
             filenames = [filename]


More information about the Python-3000-checkins mailing list