From f543348fff32ae20a9fd2c7f70a3549a3280048c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 26 Feb 2007 22:21:25 +0000 Subject: [PATCH] Fix another loop over a dict that may change... :-( --- Lib/linecache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/linecache.py b/Lib/linecache.py index 89383ea27a9..0501a107880 100644 --- a/Lib/linecache.py +++ b/Lib/linecache.py @@ -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]