diff --git a/fsl/utils/memoize.py b/fsl/utils/memoize.py index c79835d6a706c73cc7b7a75f946c1444827a4e3a..1d6d7b1e2d267d0bf42c74cef3d6fd1bc849b450 100644 --- a/fsl/utils/memoize.py +++ b/fsl/utils/memoize.py @@ -40,10 +40,11 @@ def memoize(args=None, kwargs=None): :arg args: A list of positional argument indices. :arg kwargs: A list of keyword argument names. """ - - cache = {} def decorator(func): + + cache = {} + def wrapper(*a, **kwa): key = []