Commit 4f5139ba authored by Raymond Hettinger's avatar Raymond Hettinger

Root variable is not changed.

parent 202d1ad3
......@@ -223,7 +223,7 @@ def lru_cache(maxsize=100, typed=False):
def cache_clear():
"""Clear the cache and cache statistics"""
nonlocal hits, misses, root
nonlocal hits, misses
with lock:
cache.clear()
root[:] = [root, root, None, None]
......
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