From bd88802c1fdf7b1ce01cba4bc40c516f1a5afff0 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 11 Sep 2010 08:07:42 +0000 Subject: Revert r84700 which had an unfortunate performance cost. --- Lib/functools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/functools.py') diff --git a/Lib/functools.py b/Lib/functools.py index 666b8db441..b39e77eb61 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 -- cgit v1.2.1