summaryrefslogtreecommitdiffstats
path: root/Lib/linecache.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-02-26 22:21:25 (GMT)
committerGuido van Rossum <guido@python.org>2007-02-26 22:21:25 (GMT)
commitf543348fff32ae20a9fd2c7f70a3549a3280048c (patch)
tree05977f09fd7727aa870e94eacd28811f1e408367 /Lib/linecache.py
parentce4a475efb3d9f5e56af3226bd4acda4002c1250 (diff)
downloadcpython-f543348fff32ae20a9fd2c7f70a3549a3280048c.zip
cpython-f543348fff32ae20a9fd2c7f70a3549a3280048c.tar.gz
cpython-f543348fff32ae20a9fd2c7f70a3549a3280048c.tar.bz2
Fix another loop over a dict that may change... :-(
Diffstat (limited to 'Lib/linecache.py')
-rw-r--r--Lib/linecache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/linecache.py b/Lib/linecache.py
index 89383ea..0501a10 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]