summaryrefslogtreecommitdiffstats
path: root/Lib/functools.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2012-03-17 00:08:37 (GMT)
committerRaymond Hettinger <python@rcn.com>2012-03-17 00:08:37 (GMT)
commit4f5139ba20a76c0bc9b3dd361cdde27b5abff6a4 (patch)
tree72379f419d3234ed77efa0de805978eb3c3b47db /Lib/functools.py
parent202d1ad3f6063758cddfbc596d2ad9f1efab5920 (diff)
downloadcpython-4f5139ba20a76c0bc9b3dd361cdde27b5abff6a4.zip
cpython-4f5139ba20a76c0bc9b3dd361cdde27b5abff6a4.tar.gz
cpython-4f5139ba20a76c0bc9b3dd361cdde27b5abff6a4.tar.bz2
Root variable is not changed.
Diffstat (limited to 'Lib/functools.py')
-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]