summaryrefslogtreecommitdiffstats
path: root/Lib/functools.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-06 21:26:09 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-06 21:26:09 (GMT)
commitf45abc97bfad3bc9737a8a8d95c1f4a60cd6f478 (patch)
tree7b24d9113c1d79480cde1daae9ed58199bc0e007 /Lib/functools.py
parent7b2a7710ef17e38e021f6f045b8cd7ad0e96d5e1 (diff)
downloadcpython-f45abc97bfad3bc9737a8a8d95c1f4a60cd6f478.zip
cpython-f45abc97bfad3bc9737a8a8d95c1f4a60cd6f478.tar.gz
cpython-f45abc97bfad3bc9737a8a8d95c1f4a60cd6f478.tar.bz2
Add method to OrderedDict for repositioning keys to the ends.
Diffstat (limited to 'Lib/functools.py')
-rw-r--r--Lib/functools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index b2df390..a723f66 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -127,7 +127,7 @@ def lru_cache(maxsize=100):
len=len, KeyError=KeyError):
cache = OrderedDict() # ordered least recent to most recent
cache_popitem = cache.popitem
- cache_renew = cache._renew
+ cache_renew = cache.move_to_end
kwd_mark = object() # separate positional and keyword args
lock = Lock()