summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/functools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index 19b7613..fec4b9e 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -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]