mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Root variable is not changed.
This commit is contained in:
parent
202d1ad3f6
commit
4f5139ba20
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user