diff --git a/Lib/functools.py b/Lib/functools.py index de30a921942..331da3c0c31 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -196,7 +196,7 @@ def make_key(args, kwds, typed, tuple=tuple, sorted=sorted, type=type): def wrapper(*args, **kwds): # no caching, just do a statistics update after a successful call nonlocal misses - result = user_function(*args, **kwds) + result = user_function(*args, **kwds) misses += 1 return result