diff options
| author | Raymond Hettinger <python@rcn.com> | 2013-03-04 04:19:09 -0500 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2013-03-04 04:19:09 -0500 |
| commit | 352cc8cfc38e0233b0a0051761afcfd842367b95 (patch) | |
| tree | 663995792a46ae94293b1041865f99847e0f68cf /Lib/functools.py | |
| parent | f2c17a9276e5793b4a0e9e84a338a1c874ddd01c (diff) | |
| download | cpython-git-352cc8cfc38e0233b0a0051761afcfd842367b95.tar.gz | |
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 87c1b6992e..ba6f9cd5d4 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 |
