diff options
author | Raymond Hettinger <python@rcn.com> | 2010-09-11 08:07:42 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-09-11 08:07:42 (GMT) |
commit | bd88802c1fdf7b1ce01cba4bc40c516f1a5afff0 (patch) | |
tree | ea8dc8282eef3efe7d68d5a48051b9fa49a1b39d /Lib/functools.py | |
parent | 5e1fdacc36934afcd05f3a27819bc8a7a371cfda (diff) | |
download | cpython-bd88802c1fdf7b1ce01cba4bc40c516f1a5afff0.zip cpython-bd88802c1fdf7b1ce01cba4bc40c516f1a5afff0.tar.gz cpython-bd88802c1fdf7b1ce01cba4bc40c516f1a5afff0.tar.bz2 |
Revert r84700 which had an unfortunate performance cost.
Diffstat (limited to 'Lib/functools.py')
-rw-r--r-- | Lib/functools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/functools.py b/Lib/functools.py index 666b8db..b39e77e 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -123,8 +123,8 @@ def lru_cache(maxsize=100): http://en.wikipedia.org/wiki/Cache_algorithms#Least_Recently_Used """ - def decorating_function(user_function, - *, tuple=tuple, sorted=sorted, len=len, KeyError=KeyError): + def decorating_function(user_function, tuple=tuple, sorted=sorted, + len=len, KeyError=KeyError): cache = OrderedDict() # ordered least recent to most recent cache_popitem = cache.popitem cache_renew = cache.move_to_end |