Commit 79252a03 authored by Raymond Hettinger's avatar Raymond Hettinger

Another nit.

parent 707d1097
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment