mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Readability nit.
This commit is contained in:
parent
7babc1b6a5
commit
af1e140334
1 changed files with 2 additions and 1 deletions
|
|
@ -128,7 +128,8 @@ def lru_cache(maxsize=100):
|
||||||
def decorating_function(user_function, tuple=tuple, sorted=sorted,
|
def decorating_function(user_function, tuple=tuple, sorted=sorted,
|
||||||
len=len, KeyError=KeyError):
|
len=len, KeyError=KeyError):
|
||||||
cache = OrderedDict() # ordered least recent to most recent
|
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
|
kwd_mark = object() # separate positional and keyword args
|
||||||
lock = Lock()
|
lock = Lock()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue