Readability nit.

This commit is contained in:
Raymond Hettinger 2010-09-02 19:58:35 +00:00
parent 7babc1b6a5
commit af1e140334
1 changed files with 2 additions and 1 deletions

View File

@ -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()