]> granicus.if.org Git - python/commitdiff
Fix another loop over a dict that may change... :-(
authorGuido van Rossum <guido@python.org>
Mon, 26 Feb 2007 22:21:25 +0000 (22:21 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 26 Feb 2007 22:21:25 +0000 (22:21 +0000)
Lib/linecache.py

index 89383ea27a97139406ebac9656eaa044f8f5d2ff..0501a107880d5e00f5227dc4c2215544483c5744 100644 (file)
@@ -45,7 +45,7 @@ def checkcache(filename=None):
     (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]