Root variable is not changed.
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 cache_clear():
             """Clear the cache and cache statistics"""
-            nonlocal hits, misses, root
+            nonlocal hits, misses
             with lock:
                 cache.clear()
                 root[:] = [root, root, None, None]