Commit af1e1403 authored by Raymond Hettinger's avatar Raymond Hettinger

Readability nit.

parent 7babc1b6
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment