mirror of
https://github.com/python/cpython.git
synced 2025-10-15 11:22:18 +00:00
Minor beautification.
This commit is contained in:
parent
d845450eef
commit
dce583e0bd
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
_CacheInfo = namedtuple("CacheInfo", "hits misses maxsize currsize")
|
_CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"])
|
||||||
|
|
||||||
def lru_cache(maxsize=100, typed=False):
|
def lru_cache(maxsize=100, typed=False):
|
||||||
"""Least-recently-used cache decorator.
|
"""Least-recently-used cache decorator.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue