diff options
author | Guido van Rossum <guido@python.org> | 2007-02-26 22:21:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-26 22:21:25 (GMT) |
commit | f543348fff32ae20a9fd2c7f70a3549a3280048c (patch) | |
tree | 05977f09fd7727aa870e94eacd28811f1e408367 /Lib/linecache.py | |
parent | ce4a475efb3d9f5e56af3226bd4acda4002c1250 (diff) | |
download | cpython-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.py | 2 |
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] |