diff options
| author | Raymond Hettinger <python@rcn.com> | 2010-09-02 19:58:35 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2010-09-02 19:58:35 +0000 |
| commit | af1e140334e090583651670193d1c310f29bf90e (patch) | |
| tree | f292b688e37f4ff12cbcc2b2aa01893aac64b57c /Lib/functools.py | |
| parent | 7babc1b6a5a523bb6f8635a4ee6db2501595d27d (diff) | |
| download | cpython-git-af1e140334e090583651670193d1c310f29bf90e.tar.gz | |
Readability nit.
Diffstat (limited to 'Lib/functools.py')
| -rw-r--r-- | Lib/functools.py | 3 |
1 files changed, 2 insertions, 1 deletions
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() |
