Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f543348

Browse files
committed
Fix another loop over a dict that may change... :-(
1 parent ce4a475 commit f543348

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/linecache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def checkcache(filename=None):
4545
(This is not checked upon each call!)"""
4646

4747
if filename is None:
48-
filenames = cache.keys()
48+
filenames = list(cache.keys())
4949
else:
5050
if filename in cache:
5151
filenames = [filename]

0 commit comments

Comments
 (0)