From: Guido van Rossum Date: Mon, 26 Feb 2007 22:21:25 +0000 (+0000) Subject: Fix another loop over a dict that may change... :-( X-Git-Tag: v3.0a1~1161 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f543348fff32ae20a9fd2c7f70a3549a3280048c;p=thirdparty%2FPython%2Fcpython.git Fix another loop over a dict that may change... :-( --- diff --git a/Lib/linecache.py b/Lib/linecache.py index 89383ea27a97..0501a107880d 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]