summaryrefslogtreecommitdiffstats
path: root/Lib/functools.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-02 19:58:35 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-02 19:58:35 (GMT)
commitaf1e140334e090583651670193d1c310f29bf90e (patch)
treef292b688e37f4ff12cbcc2b2aa01893aac64b57c /Lib/functools.py
parent7babc1b6a5a523bb6f8635a4ee6db2501595d27d (diff)
downloadcpython-af1e140334e090583651670193d1c310f29bf90e.zip
cpython-af1e140334e090583651670193d1c310f29bf90e.tar.gz
cpython-af1e140334e090583651670193d1c310f29bf90e.tar.bz2
Readability nit.
Diffstat (limited to 'Lib/functools.py')
-rw-r--r--Lib/functools.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index 11843b7..658081f 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()