From af1e140334e090583651670193d1c310f29bf90e Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 2 Sep 2010 19:58:35 +0000 Subject: [PATCH] Readability nit. --- Lib/functools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/functools.py b/Lib/functools.py index 11843b72ca..658081fea0 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -128,7 +128,8 @@ def lru_cache(maxsize=100): def decorating_function(user_function, tuple=tuple, sorted=sorted, len=len, KeyError=KeyError): cache = OrderedDict() # ordered least recent to most recent - cache_popitem, cache_renew = cache.popitem, cache._renew + cache_popitem = cache.popitem + cache_renew = cache._renew kwd_mark = object() # separate positional and keyword args lock = Lock() -- 2.40.0