diff --git a/disco/util/serializer.py b/disco/util/serializer.py index e248490..a481a9d 100644 --- a/disco/util/serializer.py +++ b/disco/util/serializer.py @@ -68,6 +68,7 @@ def dump_function(func): ) -def load_function((code, name, defaults, closure)): +def load_function(args): + code, name, defaults, closure = args closure = tuple(map(load_cell, closure)) return types.FunctionType(code, globals(), name, defaults, closure)