mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Another nit.
This commit is contained in:
parent
f2c17a9276
commit
352cc8cfc3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue