Fix another loop over a dict that may change... :-(

This commit is contained in:
Guido van Rossum 2007-02-26 22:21:25 +00:00
parent ce4a475efb
commit f543348fff
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def checkcache(filename=None):
(This is not checked upon each call!)""" (This is not checked upon each call!)"""
if filename is None: if filename is None:
filenames = cache.keys() filenames = list(cache.keys())
else: else:
if filename in cache: if filename in cache:
filenames = [filename] filenames = [filename]