commit | dce583e0bdb63b7b98b748b4ad12d1fbdb22462b | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Fri Mar 16 22:12:20 2012 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Fri Mar 16 22:12:20 2012 -0700 |
tree | 59369a2386dfe960ca1441a94e79337195b802d1 | |
parent | d845450eeff9f2c86de7ef950b67de7f6aedd0b1 [diff] [blame] |
Minor beautification.
diff --git a/Lib/functools.py b/Lib/functools.py index fec4b9e..dd653f4 100644 --- a/Lib/functools.py +++ b/Lib/functools.py
@@ -120,7 +120,7 @@ except ImportError: pass -_CacheInfo = namedtuple("CacheInfo", "hits misses maxsize currsize") +_CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"]) def lru_cache(maxsize=100, typed=False): """Least-recently-used cache decorator.