Fixed #761; thanks, Eugene

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2005-11-09 18:29:58 +00:00
parent f85cd32dbd
commit 31d18380f9
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ class _FileCache(_SimpleCache):
return os.path.exists(self._key_to_file(key))
def _cull(self, filelist):
if self.cull_frequency == 0:
if self._cull_frequency == 0:
doomed = filelist
else:
doomed = [k for (i, k) in enumerate(filelist) if i % self._cull_frequency == 0]