diff options
author | Raymond Hettinger <python@rcn.com> | 2013-03-04 09:19:09 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2013-03-04 09:19:09 (GMT) |
commit | 352cc8cfc38e0233b0a0051761afcfd842367b95 (patch) | |
tree | 663995792a46ae94293b1041865f99847e0f68cf /Lib/functools.py | |
parent | f2c17a9276e5793b4a0e9e84a338a1c874ddd01c (diff) | |
download | cpython-352cc8cfc38e0233b0a0051761afcfd842367b95.zip cpython-352cc8cfc38e0233b0a0051761afcfd842367b95.tar.gz cpython-352cc8cfc38e0233b0a0051761afcfd842367b95.tar.bz2 |
Another nit.
Diffstat (limited to 'Lib/functools.py')
-rw-r--r-- | Lib/functools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py index 87c1b69..ba6f9cd 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -285,7 +285,7 @@ def lru_cache(maxsize=128, typed=False): link = [last, root, key, result] last[NEXT] = root[PREV] = cache[key] = link currsize += 1 - full = (currsize == maxsize) + full = (currsize >= maxsize) misses += 1 return result |