diff options
| author | Raymond Hettinger <python@rcn.com> | 2012-03-16 17:08:37 -0700 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2012-03-16 17:08:37 -0700 |
| commit | 4f5139ba20a76c0bc9b3dd361cdde27b5abff6a4 (patch) | |
| tree | 72379f419d3234ed77efa0de805978eb3c3b47db /Lib/functools.py | |
| parent | 202d1ad3f6063758cddfbc596d2ad9f1efab5920 (diff) | |
| download | cpython-git-4f5139ba20a76c0bc9b3dd361cdde27b5abff6a4.tar.gz | |
Root variable is not changed.
Diffstat (limited to 'Lib/functools.py')
| -rw-r--r-- | Lib/functools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py index 19b7613918..fec4b9e703 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] |
